Code

Teach --find-copies-harder to "git blame"
authorJunio C Hamano <gitster@pobox.com>
Thu, 31 Jul 2008 07:05:22 +0000 (00:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Jul 2008 18:22:12 +0000 (11:22 -0700)
It's equivalent to "-C -C" with the diff family.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-blame.c

index 8b6b09b10b8f9dcda0b7224f31c860bb803945f0..4ea343189fdad035318e94ce0c6c2ec16b62ba7f 100644 (file)
@@ -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)