aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-07-31 00:05:22 -0700
committerJunio C Hamano <gitster@pobox.com>2008-07-31 11:22:12 -0700
commitb3123f9802989d9c8184e2265a6176a6f5aeed71 (patch)
tree7b905abe4852db39aa6d3e3fe4070a1e6d8ed2f4
parentfdc7c81111a2ca8d97b8b45e260d7a4e737c8766 (diff)
downloadgit-b3123f9802989d9c8184e2265a6176a6f5aeed71.tar.gz
git-b3123f9802989d9c8184e2265a6176a6f5aeed71.tar.xz
Teach --find-copies-harder to "git blame"
It's equivalent to "-C -C" with the diff family. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-blame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-blame.c b/builtin-blame.c
index 8b6b09b10..4ea343189 100644
--- a/builtin-blame.c
+++ b/builtin-blame.c
@@ -2346,6 +2346,10 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
parse_done:
argc = parse_options_end(&ctx);
+ if (DIFF_OPT_TST(&revs.diffopt, FIND_COPIES_HARDER))
+ opt |= (PICKAXE_BLAME_COPY | PICKAXE_BLAME_MOVE |
+ PICKAXE_BLAME_COPY_HARDER);
+
if (!blame_move_score)
blame_move_score = BLAME_DEFAULT_MOVE_SCORE;
if (!blame_copy_score)