diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-07-31 00:05:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-31 11:22:12 -0700 |
commit | b3123f9802989d9c8184e2265a6176a6f5aeed71 (patch) | |
tree | 7b905abe4852db39aa6d3e3fe4070a1e6d8ed2f4 /builtin-blame.c | |
parent | fdc7c81111a2ca8d97b8b45e260d7a4e737c8766 (diff) | |
download | git-b3123f9802989d9c8184e2265a6176a6f5aeed71.tar.gz |
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>
Diffstat (limited to 'builtin-blame.c')
-rw-r--r-- | builtin-blame.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |