git show doesn't respect config: diff.renames=copies
What do I need to enter in /etc/gitconfig to get all commands that deal with diffs of some kind to honour renames=copies ?
Signature · 4 lines
Sincerely,
Stephen R. van den Berg.
If there's a hard way to do something, I'm there before anyone else.Quoted 2 lines · Stephen R. van den Berg
What do I need to enter in
/etc/gitconfigto get all commands that deal with diffs of some kind to honour renames=copies ?
$ git grep -A3 diff.renames config.txt:diff.renames:: config.txt- Tells git to detect renames. If set to any boolean value, it config.txt- will enable basic rename detection. If set to "copies" or config.txt- "copy", it will detect copies, as well.
-Peff
Quoted 10 lines · Jeff King
Quoted 2 lines · Stephen R. van den Berg
What do I need to enter in
/etc/gitconfigto get all commands that deal with diffs of some kind to honour renames=copies ?$ git grep -A3 diff.renames config.txt:diff.renames:: config.txt- Tells git to detect renames. If set to any boolean value, it config.txt- will enable basic rename detection. If set to "copies" or config.txt- "copy", it will detect copies, as well.
See subject line ;-)
Works for me though. Stephen, probably the source file didn't change in the same commit. In such a case you need --find-copies-harder, and that seems not to be configurable as the default.
Björn
Quoted 7 lines · Björn Steinbrink
Quoted 5 lines
$ git grep -A3 diff.renames config.txt:diff.renames:: config.txt- Tells git to detect renames. If set to any boolean value, it config.txt- will enable basic rename detection. If set to "copies" or config.txt- "copy", it will detect copies, as well.See subject line ;-)
Heh. Yes, oops. His question makes a lot more sense now. ;)
Quoted 3 lines
Works for me though. Stephen, probably the source file didn't change in the same commit. In such a case you need --find-copies-harder, and that seems not to be configurable as the default.
I don't think it is configurable. Probably a "copiesharder" option for diff.renames would be a sane addition.
-Peff