From b3123f9802989d9c8184e2265a6176a6f5aeed71 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 31 Jul 2008 00:05:22 -0700 Subject: Teach --find-copies-harder to "git blame" It's equivalent to "-C -C" with the diff family. Signed-off-by: Junio C Hamano --- builtin-blame.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin-blame.c b/builtin-blame.c index 8b6b09b10b..4ea343189f 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) -- cgit v1.2.3