Skip to content

Commit bdd4741

Browse files
pcloudsgitster
authored andcommitted
diff-parseopt: convert --find-copies-harder
--no-find-copies-harder is also added on purpose (because I don't see why we should not have the --no- version for this) Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7f64850 commit bdd4741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5085,6 +5085,8 @@ static void prep_parse_options(struct diff_options *options)
50855085
N_("detect copies"),
50865086
PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
50875087
diff_opt_find_copies),
5088+
OPT_BOOL(0, "find-copies-harder", &options->flags.find_copies_harder,
5089+
N_("use unmodified files as source to find copies")),
50885090

50895091
OPT_GROUP(N_("Diff other options")),
50905092
{ OPTION_CALLBACK, 0, "output", options, N_("<file>"),
@@ -5191,8 +5193,6 @@ int diff_opt_parse(struct diff_options *options,
51915193
options->flags.text = 1;
51925194
else if (!strcmp(arg, "-R"))
51935195
options->flags.reverse_diff = 1;
5194-
else if (!strcmp(arg, "--find-copies-harder"))
5195-
options->flags.find_copies_harder = 1;
51965196
else if (!strcmp(arg, "--follow"))
51975197
options->flags.follow_renames = 1;
51985198
else if (!strcmp(arg, "--no-follow")) {

0 commit comments

Comments
 (0)