Re: git-diff/git-diff-files: Turn off copy-detection?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johannes Sixt said the following on 29.09.2009 15:40:
Marius Storm-Olsen schrieb:
Doing a 'git diff origin/4.5..origin/4.6 -- src/corelib' gives me this
excerpt:

diff --git origin/4.5/src/corelib/tools/qtimeline.h
origin/4.6/src/corelib/animation/qabstractanimation.h
similarity index 58%
...

You must have the config variable diff.renames set. But I would not expect
that this setting applies to 'git diff-files', only to 'git diff'.

$ git config diff.renames
copies

That's it, thanks! Strange that nothing in the git-diff documentation pointed me in this direction? Obviously I didn't connect the dots between 'copy' and 'renames' either..


You can also try 'git diff -C99 -M99' if you don't want to unset the
config variable.

Thanks, I'll add that to my review script. Much appreciated!

--
.marius
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]