Skip to contentSkip to conversation

Teach "git-merge" that "stupid" merge strategy no longer exists

PATCH New Nanako Shiraishi 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Teach "git-merge" that "stupid" merge strategy no longer exists

Next release 1.6.0 will not have "stupid" merge strategy, but "git merge -s confused origin" still includs it in the list of available merge strategies.

---
 builtin-merge.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
builtin-merge.c +0 -1
index 129b4e6..edc6016 100644
@@ -54,7 +54,6 @@ static struct strategy all_strategy[] = {
 	{ "recursive",  DEFAULT_TWOHEAD | NO_TRIVIAL },
 	{ "octopus",    DEFAULT_OCTOPUS },
 	{ "resolve",    0 },
-	{ "stupid",     0 },
 	{ "ours",       NO_FAST_FORWARD | NO_TRIVIAL },
 	{ "subtree",    NO_FAST_FORWARD | NO_TRIVIAL },
 };
Signature · 5 lines
1.5.6.3

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
#1 lore raw

PATCH 1/1 Teach 'git merge' that 'recur' merge strategy no longer exists

It co-existed with 'recursive' when rewriting it in C, but it no longer available.

---

Quoted 1 line · Nanako Shiraishi

- { "stupid", 0 },

If we are at it, recur is also something unnecessary here.

 builtin-merge.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
builtin-merge.c +0 -1
index 129b4e6..beba635 100644
@@ -50,7 +50,6 @@ 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 },
Signature · 1 line
1.5.6.2.450.g8d367.dirty
#2 lore raw

Re: [PATCH] Teach 'git merge' that 'recur' merge strategy no longer exists

Quoted 10 lines · Miklos Vajna

It co-existed with 'recursive' when rewriting it in C, but it no longer available.

---

Quoted 1 line · Nanako Shiraishi

- { "stupid", 0 },

If we are at it, recur is also something unnecessary here.

Good eyes, both of you. Will roll a die and commit one squashed, creditting one of you at random ;-)

#3 lore raw

Re: [PATCH] Teach 'git merge' that 'recur' merge strategy no longer exists

Quoted 2 lines · Junio C Hamano

Good eyes, both of you. Will roll a die and commit one squashed, creditting one of you at random ;-)

I thought commit messages can have multiple Signed-off-by lines. ;-)