git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] rebase: hide --preserve-merges option

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 21, 2019, 03:04 UTC
Message-ID
<xmqq36fmn6j5.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<47bc4470e22c349082ae45b1e4b5c2547d30d4d2.1571442786.git.liu.denton@gmail.com>
Denton Liu <liu.denton@gmail.com> writes:
Show 8 quoted lines
> 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 <liu.denton@gmail.com>
> ---
> This patch continues the deprecation effort and can be based on top of
> `js/rebase-deprecate-preserve-merges`.

Sounds good. Let's keep it and have it part of the first batch after the release.

Show 22 quoted lines
>
>  builtin/rebase.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/builtin/rebase.c b/builtin/rebase.c
> index 21ac10f739..0d63651d95 100644
> --- a/builtin/rebase.c
> +++ b/builtin/rebase.c
> @@ -1099,9 +1099,10 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
>  			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 "
Previous: Denton Liu
Message 2 of 2 in “rebase: hide --preserve-merges option”
  1. rebase: hide --preserve-merges optionDenton Liu, Oct 18, 2019
  2. Junio C HamanoOct 21, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.