{"thread":{"id":"25636","subject":"git log --follow","startedAt":"2010-11-04T03:00:23Z","lastAt":"2010-11-04T03:18:27Z","messageCount":2,"participants":["Scott Chacon","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"155126","messageId":"AANLkTinEEtfxu=NbaGn=A88MrU7JCFztMzB-x3--FCdB@mail.gmail.com","threadId":"25636","inReplyTo":null,"subject":"git log --follow","fromName":"Scott Chacon","fromEmail":"schacon@gmail.com","sentAt":"2010-11-04T03:00:23Z","receivedAt":"2010-11-04T03:00:23Z","isPatch":false,"sender":{"key":"schacon@gmail.com","avatar":"https://gravatar.com/avatar/9b13a8a078e1dcf8588c4eea9554445d51ebed6c41b51f56f4d96738130b05c6?d=mp&s=160"},"body":"Is there any way to get 'git log --follow' to respect the -M[num]\noption?  If I want to lower the boundary for rename detection when\nprinting file history, is there any way to do that?  It doesn't seem\nto work if I just list them both.\n\nThanks,\nScott\n"},{"id":"155133","messageId":"20101104031827.GA20772@sigill.intra.peff.net","threadId":"25636","inReplyTo":"AANLkTinEEtfxu=NbaGn=A88MrU7JCFztMzB-x3--FCdB@mail.gmail.com","subject":"Re: git log --follow","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2010-11-04T03:18:27Z","receivedAt":"2010-11-04T03:18:27Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Nov 03, 2010 at 08:00:23PM -0700, Scott Chacon wrote:\n\n> Is there any way to get 'git log --follow' to respect the -M[num]\n> option?  If I want to lower the boundary for rename detection when\n> printing file history, is there any way to do that?  It doesn't seem\n> to work if I just list them both.\n\nNo. But this patch would do it.\n\ndiff --git a/tree-diff.c b/tree-diff.c\nindex 12c9a88..378f049 100644\n--- a/tree-diff.c\n+++ b/tree-diff.c\n@@ -351,6 +351,7 @@ static void try_to_follow_renames(struct tree_desc *t1, struct tree_desc *t2, co\n \tdiff_opts.output_format = DIFF_FORMAT_NO_OUTPUT;\n \tdiff_opts.single_follow = opt->paths[0];\n \tdiff_opts.break_opt = opt->break_opt;\n+\tdiff_opts.rename_score = opt->rename_score;\n \tpaths[0] = NULL;\n \tdiff_tree_setup_paths(paths, &diff_opts);\n \tif (diff_setup_done(&diff_opts) < 0)\n\nYou can see the difference with:\n\n  $ git log --oneline --follow --name-status \\\n    Documentation/technical/api-string-list.txt\n  1d2f80f string_list: Fix argument order for string_list_append\n  M       Documentation/technical/api-string-list.txt\n  e242148 string-list: add unsorted_string_list_lookup()\n  M       Documentation/technical/api-string-list.txt\n  0dda1d1 Fix two leftovers from path_list->string_list\n  M       Documentation/technical/api-string-list.txt\n  c455c87 Rename path_list to string_list\n  A       Documentation/technical/api-string-list.txt\n\n  $ git log -M40 --oneline --follow --name-status \\\n    Documentation/technical/api-string-list.txt\n  1d2f80f string_list: Fix argument order for string_list_append\n  M       Documentation/technical/api-string-list.txt\n  e242148 string-list: add unsorted_string_list_lookup()\n  M       Documentation/technical/api-string-list.txt\n  0dda1d1 Fix two leftovers from path_list->string_list\n  M       Documentation/technical/api-string-list.txt\n  c455c87 Rename path_list to string_list\n  R047    Documentation/technical/api-path-list.txt\n  Documentation/technical/api-string-list.txt\n  328a475 path-list documentation: document all functions and data structures\n  M       Documentation/technical/api-path-list.txt\n  530e741 Start preparing the API documents.\n  A       Documentation/technical/api-path-list.txt\n\nI think it's probably something we should be doing (as you can see, we\nalready copy the break_opt).\n\n-Peff\n"}]}