Skip to content

Commit f1fcaaf

Browse files
committed
amend! pull: remove support for --rebase=preserve
pull: remove support for `--rebase=preserve` In preparation for `git-rebase--preserve-merges.sh` entering its after life, we remove this (deprecated) option that would still rely on it. To help users transition who still did not receive the memo about the deprecation, we offer a helpful error message instead of throwing our hands in the air and saying that we don't know that option, never heard of it. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e6c1d5e commit f1fcaaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rebase.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "rebase.h"
22
#include "config.h"
3+
#include "gettext.h"
34

45
/*
56
* Parses textual value for pull.rebase, branch.<name>.rebase, etc.
@@ -24,6 +25,8 @@ enum rebase_type rebase_parse_value(const char *value)
2425
return REBASE_MERGES;
2526
else if (!strcmp(value, "interactive") || !strcmp(value, "i"))
2627
return REBASE_INTERACTIVE;
28+
else if (!strcmp(value, "preserve") || !strcmp(value, "p"))
29+
error(_("%s: 'preserve' superseded by 'merges'"), value);
2730
/*
2831
* Please update _git_config() in git-completion.bash when you
2932
* add new rebase modes.

0 commit comments

Comments
 (0)