merge-recursive: more consistent interface
Add strategy option find-renames, following git-diff interface. This makes the option rename-threshold redundant. Signed-off-by: Felipe Gonçalves Assis <felipegassis@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
d2b11eca7e
commit
1b47ad160b
@ -2094,7 +2094,10 @@ int parse_merge_opt(struct merge_options *o, const char *s)
|
||||
o->renormalize = 0;
|
||||
else if (!strcmp(s, "no-renames"))
|
||||
o->detect_rename = 0;
|
||||
else if (skip_prefix(s, "rename-threshold=", &arg)) {
|
||||
else if (!strcmp(s, "find-renames"))
|
||||
o->detect_rename = 1;
|
||||
else if (skip_prefix(s, "find-renames=", &arg) ||
|
||||
skip_prefix(s, "rename-threshold=", &arg)) {
|
||||
if ((o->rename_score = parse_rename_score(&arg)) == -1 || *arg != 0)
|
||||
return -1;
|
||||
o->detect_rename = 1;
|
||||
|
||||
Reference in New Issue
Block a user