Skip to content

Commit 0c51181

Browse files
committed
Merge branch 'js/rebase-deprecate-preserve-merges'
"git rebase --preserve-merges" has been marked as deprecated; this release stops advertising it in the "git rebase -h" output. * js/rebase-deprecate-preserve-merges: rebase: hide --preserve-merges option
2 parents 8f40d89 + feebd2d commit 0c51181

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
@@ -1471,9 +1471,10 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
14711471
N_("let the user edit the list of commits to rebase"),
14721472
PARSE_OPT_NOARG | PARSE_OPT_NONEG,
14731473
parse_opt_interactive },
1474-
OPT_SET_INT('p', "preserve-merges", &options.type,
1475-
N_("(DEPRECATED) try to recreate merges instead of "
1476-
"ignoring them"), REBASE_PRESERVE_MERGES),
1474+
OPT_SET_INT_F('p', "preserve-merges", &options.type,
1475+
N_("(DEPRECATED) try to recreate merges instead of "
1476+
"ignoring them"),
1477+
REBASE_PRESERVE_MERGES, PARSE_OPT_HIDDEN),
14771478
OPT_RERERE_AUTOUPDATE(&options.allow_rerere_autoupdate),
14781479
OPT_BOOL('k', "keep-empty", &options.keep_empty,
14791480
N_("preserve empty commits during rebase")),

0 commit comments

Comments
 (0)