{"thread":{"id":"14861","subject":"git show doesn't respect config: diff.renames=copies","startedAt":"2008-08-06T11:43:40Z","lastAt":"2008-08-06T15:25:37Z","messageCount":4,"participants":["Stephen R. van den Berg","Jeff King","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"86339","messageId":"20080806114340.GA24552@cuci.nl","threadId":"14861","inReplyTo":null,"subject":"git show doesn't respect config: diff.renames=copies","fromName":"Stephen R. van den Berg","fromEmail":"srb@cuci.nl","sentAt":"2008-08-06T11:43:40Z","receivedAt":"2008-08-06T11:43:40Z","isPatch":false,"sender":{"key":"srb@cuci.nl","avatar":"https://gravatar.com/avatar/f75389059e827634d38e9df2a9b6ecbd50028b5a454442efa1c7205b7ff29c6a?d=mp&s=160"},"body":"What do I need to enter in /etc/gitconfig to get all commands that\ndeal with diffs of some kind to honour renames=copies ?\n-- \nSincerely,\n           Stephen R. van den Berg.\n\nIf there's a hard way to do something, I'm there before anyone else.\n"},{"id":"86344","messageId":"20080806140602.GA20423@sigill.intra.peff.net","threadId":"14861","inReplyTo":"20080806114340.GA24552@cuci.nl","subject":"Re: git show doesn't respect config: diff.renames=copies","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-08-06T14:06:03Z","receivedAt":"2008-08-06T14:06:03Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Aug 06, 2008 at 01:43:40PM +0200, Stephen R. van den Berg wrote:\n\n> What do I need to enter in /etc/gitconfig to get all commands that\n> deal with diffs of some kind to honour renames=copies ?\n\n$ git grep -A3 diff.renames\nconfig.txt:diff.renames::\nconfig.txt-     Tells git to detect renames.  If set to any boolean value, it\nconfig.txt-     will enable basic rename detection.  If set to \"copies\" or\nconfig.txt-     \"copy\", it will detect copies, as well.\n\n-Peff\n"},{"id":"86345","messageId":"20080806141559.GA25791@atjola.homenet","threadId":"14861","inReplyTo":"20080806140602.GA20423@sigill.intra.peff.net","subject":"Re: git show doesn't respect config: diff.renames=copies","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-08-06T14:15:59Z","receivedAt":"2008-08-06T14:15:59Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.08.06 10:06:03 -0400, Jeff King wrote:\n> On Wed, Aug 06, 2008 at 01:43:40PM +0200, Stephen R. van den Berg wrote:\n> \n> > What do I need to enter in /etc/gitconfig to get all commands that\n> > deal with diffs of some kind to honour renames=copies ?\n> \n> $ git grep -A3 diff.renames\n> config.txt:diff.renames::\n> config.txt-     Tells git to detect renames.  If set to any boolean value, it\n> config.txt-     will enable basic rename detection.  If set to \"copies\" or\n> config.txt-     \"copy\", it will detect copies, as well.\n\nSee subject line ;-)\n\nWorks for me though. Stephen, probably the source file didn't change in\nthe same commit. In such a case you need --find-copies-harder, and that\nseems not to be configurable as the default.\n\nBjörn\n"},{"id":"86351","messageId":"20080806152537.GB21233@sigill.intra.peff.net","threadId":"14861","inReplyTo":"20080806141559.GA25791@atjola.homenet","subject":"Re: git show doesn't respect config: diff.renames=copies","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-08-06T15:25:37Z","receivedAt":"2008-08-06T15:25:37Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Aug 06, 2008 at 04:15:59PM +0200, Björn Steinbrink wrote:\n\n> > $ git grep -A3 diff.renames\n> > config.txt:diff.renames::\n> > config.txt-     Tells git to detect renames.  If set to any boolean value, it\n> > config.txt-     will enable basic rename detection.  If set to \"copies\" or\n> > config.txt-     \"copy\", it will detect copies, as well.\n> \n> See subject line ;-)\n\nHeh. Yes, oops. His question makes a lot more sense now. ;)\n\n> Works for me though. Stephen, probably the source file didn't change in\n> the same commit. In such a case you need --find-copies-harder, and that\n> seems not to be configurable as the default.\n\nI don't think it is configurable. Probably a \"copiesharder\" option for\ndiff.renames would be a sane addition.\n\n-Peff\n"}]}