From: Junio C Hamano Date: Thu, 31 Jul 2008 07:05:22 +0000 (-0700) Subject: Teach --find-copies-harder to "git blame" X-Git-Tag: v1.6.0-rc2~43 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b3123f9802989d9c8184e2265a6176a6f5aeed71;p=git.git Teach --find-copies-harder to "git blame" It's equivalent to "-C -C" with the diff family. Signed-off-by: Junio C Hamano --- 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)