From 74087df4665e27607c6f2f271f3a0986e4d065a3 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 23 Feb 2018 13:46:24 -0800 Subject: [PATCH] mail.sh: always --find-copies-harder Except when showing a one-line summary without any diff, mail.sh used "-B --find-copies-harder" on all the other diff operations except for one. Make it consistent and always use "-B --find-copies-harder" so there's no confusion between the individual diffs and the summary diff shown at the end. Without --find-copies-harder, Git will simply not show even 100% exact copies as copies if the original file the copy came from was not also modified in the same commit as the copy. With the option Git will ALWAYS find exact copies regardless of how many candidates there are or what the value of `diff.renameLimit` has been set to. Signed-off-by: Kyle J. McKay --- taskd/mail.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskd/mail.sh b/taskd/mail.sh index 1bbdf5c..d64070d 100755 --- a/taskd/mail.sh +++ b/taskd/mail.sh @@ -925,7 +925,7 @@ show_new_revisions() fi scratch="${onerev#????????????????}" onerev16="${onerev%$scratch}" - git_diff_tree --no-color --date="$datefmt" $opts --always --encoding=UTF-8 --format="$pfmt12$projurlesc/$onerev16$pfmt3" --abbrev=$habbr -B -C --root "$onerev" -- + git_diff_tree --no-color --date="$datefmt" $opts --always --encoding=UTF-8 --format="$pfmt12$projurlesc/$onerev16$pfmt3" --abbrev=$habbr -B --find-copies-harder --root "$onerev" -- echo fi done <