{"thread":{"id":"8562","subject":"[RFC] Teach diff to imply --find-copies-harder upon -C -C","startedAt":"2007-06-11T20:12:19Z","lastAt":"2007-06-12T05:05:01Z","messageCount":3,"participants":["Johannes Schindelin","Brian Gernhardt","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"44755","messageId":"Pine.LNX.4.64.0706112109180.4059@racer.site","threadId":"8562","inReplyTo":null,"subject":"[RFC] Teach diff to imply --find-copies-harder upon -C -C","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-06-11T20:12:19Z","receivedAt":"2007-06-11T20:12:19Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nearlier, a second \"-C\" on the command line had no effect. But since I use \n\"--find-copies-harder\" quite a bit, and it is so long to type, and I am\nan inherently lazy person, I'd like the second \"-C\" to be a shortcut for \n\"--find-copies-harder\".\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n\n---\n\n diff.c |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/diff.c b/diff.c\nindex 1d234d3..4aa9bbc 100644\n--- a/diff.c\n+++ b/diff.c\n@@ -2201,6 +2201,8 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)\n \t\toptions->detect_rename = DIFF_DETECT_RENAME;\n \t}\n \telse if (!prefixcmp(arg, \"-C\")) {\n+\t\tif (options->detect_rename == DIFF_DETECT_COPY)\n+\t\t\toptions->find_copies_harder = 1;\n \t\tif ((options->rename_score =\n \t\t     diff_scoreopt_parse(arg)) == -1)\n \t\t\treturn -1;\n"},{"id":"44770","messageId":"7ED453D5-E82E-4C73-9C96-908F3152C26A@silverinsanity.com","threadId":"8562","inReplyTo":"Pine.LNX.4.64.0706112109180.4059@racer.site","subject":"Re: [RFC] Teach diff to imply --find-copies-harder upon -C -C","fromName":"Brian Gernhardt","fromEmail":"benji@silverinsanity.com","sentAt":"2007-06-11T23:05:57Z","receivedAt":"2007-06-11T23:05:57Z","isPatch":false,"sender":{"key":"benji@silverinsanity.com","avatar":"https://gravatar.com/avatar/e06c101dbc25c68114d859b4a9ec7cf8a2c52fd2b0270ef0eac0e2e63ff22311?d=mp&s=160"},"body":"\nOn Jun 11, 2007, at 4:12 PM, Johannes Schindelin wrote:\n\n>\n> earlier, a second \"-C\" on the command line had no effect. But since  \n> I use\n> \"--find-copies-harder\" quite a bit, and it is so long to type, and  \n> I am\n> an inherently lazy person, I'd like the second \"-C\" to be a  \n> shortcut for\n> \"--find-copies-harder\".\n\n\nI like it.  \"git-diff -C -C ...\" reads \"git-diff, find copies.  No  \nreally, find copies.\"\n\n~~ Brian\n"},{"id":"44791","messageId":"7vodjln4oy.fsf@assigned-by-dhcp.pobox.com","threadId":"8562","inReplyTo":"Pine.LNX.4.64.0706112109180.4059@racer.site","subject":"Re: [RFC] Teach diff to imply --find-copies-harder upon -C -C","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-06-12T05:05:01Z","receivedAt":"2007-06-12T05:05:01Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n\n> earlier, a second \"-C\" on the command line had no effect. But since I use \n> \"--find-copies-harder\" quite a bit, and it is so long to type, and I am\n> an inherently lazy person, I'd like the second \"-C\" to be a shortcut for \n> \"--find-copies-harder\".\n\nSounds good and consistent with what we do in git-blame.\n"}]}