Skip to content

Commit feebd2d

Browse files
Denton-Lgitster
authored andcommitted
rebase: hide --preserve-merges option
Since --preserve-merges has been deprecated in favour of --rebase-merges, mark this option as hidden so it no longer shows up in the usage and completions. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7948b49 commit feebd2d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

builtin/rebase.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,10 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
10991099
N_("let the user edit the list of commits to rebase"),
11001100
PARSE_OPT_NOARG | PARSE_OPT_NONEG,
11011101
parse_opt_interactive },
1102-
OPT_SET_INT('p', "preserve-merges", &options.type,
1103-
N_("(DEPRECATED) try to recreate merges instead of "
1104-
"ignoring them"), REBASE_PRESERVE_MERGES),
1102+
OPT_SET_INT_F('p', "preserve-merges", &options.type,
1103+
N_("(DEPRECATED) try to recreate merges instead of "
1104+
"ignoring them"),
1105+
REBASE_PRESERVE_MERGES, PARSE_OPT_HIDDEN),
11051106
OPT_BOOL(0, "rerere-autoupdate",
11061107
&options.allow_rerere_autoupdate,
11071108
N_("allow rerere to update index with resolved "

0 commit comments

Comments
 (0)