projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdc7c81
)
Teach --find-copies-harder to "git blame"
author
Junio C Hamano
<gitster@pobox.com>
Thu, 31 Jul 2008 07:05:22 +0000
(
00:05
-0700)
committer
Junio 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
patch
|
blob
|
history
diff --git
a/builtin-blame.c
b/builtin-blame.c
index 8b6b09b10b8f9dcda0b7224f31c860bb803945f0..4ea343189fdad035318e94ce0c6c2ec16b62ba7f 100644
(file)
--- 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)