Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit b28325d

Browse files
committed
Merge branch 'jk/diff-algo' into maint
"git merge-recursive" did not parse its "--diff-algorithm=" command line option correctly. * jk/diff-algo: merge-recursive: fix parsing of "diff-algorithm" option
2 parents 3fa3666 + 6562928 commit b28325d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

merge-recursive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,8 +2069,8 @@ int parse_merge_opt(struct merge_options *o, const char *s)
20692069
o->xdl_opts = DIFF_WITH_ALG(o, PATIENCE_DIFF);
20702070
else if (!strcmp(s, "histogram"))
20712071
o->xdl_opts = DIFF_WITH_ALG(o, HISTOGRAM_DIFF);
2072-
else if (!strcmp(s, "diff-algorithm=")) {
2073-
long value = parse_algorithm_value(s+15);
2072+
else if (!prefixcmp(s, "diff-algorithm=")) {
2073+
long value = parse_algorithm_value(s + strlen("diff-algorithm="));
20742074
if (value < 0)
20752075
return -1;
20762076
/* clear out previous settings */

0 commit comments

Comments
 (0)