|
|
@ -796,17 +796,7 @@ static int merge(int argc, const char **argv, const char *prefix) |
|
|
|
o.remote_ref = remote_ref.buf; |
|
|
|
o.remote_ref = remote_ref.buf; |
|
|
|
|
|
|
|
|
|
|
|
if (strategy) { |
|
|
|
if (strategy) { |
|
|
|
if (!strcmp(strategy, "manual")) |
|
|
|
if (parse_notes_merge_strategy(strategy, &o.strategy)) { |
|
|
|
o.strategy = NOTES_MERGE_RESOLVE_MANUAL; |
|
|
|
|
|
|
|
else if (!strcmp(strategy, "ours")) |
|
|
|
|
|
|
|
o.strategy = NOTES_MERGE_RESOLVE_OURS; |
|
|
|
|
|
|
|
else if (!strcmp(strategy, "theirs")) |
|
|
|
|
|
|
|
o.strategy = NOTES_MERGE_RESOLVE_THEIRS; |
|
|
|
|
|
|
|
else if (!strcmp(strategy, "union")) |
|
|
|
|
|
|
|
o.strategy = NOTES_MERGE_RESOLVE_UNION; |
|
|
|
|
|
|
|
else if (!strcmp(strategy, "cat_sort_uniq")) |
|
|
|
|
|
|
|
o.strategy = NOTES_MERGE_RESOLVE_CAT_SORT_UNIQ; |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
error("Unknown -s/--strategy: %s", strategy); |
|
|
|
error("Unknown -s/--strategy: %s", strategy); |
|
|
|
usage_with_options(git_notes_merge_usage, options); |
|
|
|
usage_with_options(git_notes_merge_usage, options); |
|
|
|
} |
|
|
|
} |
|
|
|