From: Junio C Hamano Date: Thu, 24 Oct 2019 04:34:24 +0000 (+0900) Subject: Merge branch 'js/rebase-deprecate-preserve-merges' into jch X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6fa38ed6add525eab8779023a2ff0e0924a030c;p=git Merge branch 'js/rebase-deprecate-preserve-merges' into jch "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 --- f6fa38ed6add525eab8779023a2ff0e0924a030c diff --cc builtin/rebase.c index b171c86e3d,0d63651d95..f1eb74b344 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@@ -1476,10 -1099,14 +1476,11 @@@ int cmd_rebase(int argc, const char **a N_("let the user edit the list of commits to rebase"), PARSE_OPT_NOARG | PARSE_OPT_NONEG, parse_opt_interactive }, - OPT_SET_INT('p', "preserve-merges", &options.type, - N_("(DEPRECATED) try to recreate merges instead of " - "ignoring them"), REBASE_PRESERVE_MERGES), + OPT_SET_INT_F('p', "preserve-merges", &options.type, + N_("(DEPRECATED) try to recreate merges instead of " + "ignoring them"), + REBASE_PRESERVE_MERGES, PARSE_OPT_HIDDEN), - OPT_BOOL(0, "rerere-autoupdate", - &options.allow_rerere_autoupdate, - N_("allow rerere to update index with resolved " - "conflict")), + OPT_RERERE_AUTOUPDATE(&options.allow_rerere_autoupdate), OPT_BOOL('k', "keep-empty", &options.keep_empty, N_("preserve empty commits during rebase")), OPT_BOOL(0, "autosquash", &options.autosquash,