summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2010-11-29 14:52:59 -0800
committerJunio C Hamano <gitster@pobox.com>2010-11-29 16:58:27 -0800
commit150a5daad0095d06d38eadefdde4703fa3cca3e5 (patch)
tree5d4bd3caa8309a67cb7af1851b01eb3b7442d410 /diff.c
parent7d43de925b2771d295d8fc4341b7bd544e2a74fa (diff)
downloadgit-150a5daad0095d06d38eadefdde4703fa3cca3e5.tar.gz
diff: add --detect-copies-harder as a synonym for --find-copies-harder
Signed-off-by: Kevin Ballard <kevin@sb.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index c248bc64c5..dee0bd8f4e 100644
--- a/diff.c
+++ b/diff.c
@@ -3194,7 +3194,7 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
DIFF_OPT_SET(options, TEXT);
else if (!strcmp(arg, "-R"))
DIFF_OPT_SET(options, REVERSE_DIFF);
- else if (!strcmp(arg, "--find-copies-harder"))
+ else if (!strcmp(arg, "--find-copies-harder") || !strcmp(arg, "--detect-copies-harder"))
DIFF_OPT_SET(options, FIND_COPIES_HARDER);
else if (!strcmp(arg, "--follow"))
DIFF_OPT_SET(options, FOLLOW_RENAMES);