On 10 August 2011 20:44, Chris G cl@isbd.net wrote:
Is there any git way of comparing the files in the git repository with files in a corresponding (but with *many* more files in) tree somewhere else on my system? I.e. I want to diff each file in the git repository with a file in a similar tree.
Cant you just use diff with recursive option to diff your out-of-repository tree with your checked-out-version in your repository? You will get a diff and you can inspect it.
Or you could create a new (temp) branch in your repos, check it out, delete all the files (but not the .git/ directory) (using normal linux commands), copying your other files in, then doing a commit so that all the old files are removed from repos, all new files are added, all changes detected. Then you have 2 branches you could diff and compare with git.
-Srdjan