mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
Teach 'git merge' that some merge strategies no longer exist
'recur' co-existed with 'recursive' when rewriting it in C, but it no longer available. 'stupid' was also recently removed. "git merge -s confused origin" still includes them in the list of available merge strategies. [jc: this is a squash of two micropatches] Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
b0f2ecf593
commit
ec96224e21
@ -50,11 +50,9 @@ static size_t use_strategies_nr, use_strategies_alloc;
|
||||
static const char *branch;
|
||||
|
||||
static struct strategy all_strategy[] = {
|
||||
{ "recur", NO_TRIVIAL },
|
||||
{ "recursive", DEFAULT_TWOHEAD | NO_TRIVIAL },
|
||||
{ "octopus", DEFAULT_OCTOPUS },
|
||||
{ "resolve", 0 },
|
||||
{ "stupid", 0 },
|
||||
{ "ours", NO_FAST_FORWARD | NO_TRIVIAL },
|
||||
{ "subtree", NO_FAST_FORWARD | NO_TRIVIAL },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user