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

Re: [PATCH] git-rebase.sh: fix typos in error messages

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 28, 2018, 22:01 UTC
Message-ID
<xmqqzhw19t9a.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180928192849.30792-1-ralf.thielow@gmail.com>
Ralf Thielow <ralf.thielow@gmail.com> writes:
> Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
> ---
>  git-rebase.sh | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

This patch itself will soon stop mattering once the group of rebase-in-c topics graduate, which hopefully will happen during this cycle. However, because the same mistakes are inherited to builtin/rebase.c by these topics, we'd need a matching fix to correct 07664161 ("builtin rebase: error out on incompatible option/mode combinations", 2018-08-08) and either squash the fix into that commit, or queue it on top of pk/rebase-in-c-5-test topic.

Will queue; thanks.
Show 24 quoted lines
>
> diff --git a/git-rebase.sh b/git-rebase.sh
> index 7973447645..45b6ee9c0e 100755
> --- a/git-rebase.sh
> +++ b/git-rebase.sh
> @@ -553,15 +553,15 @@ then
>  	# Note: incompatibility with --interactive is just a strong warning;
>  	#       git-rebase.txt caveats with "unless you know what you are doing"
>  	test -n "$rebase_merges" &&
> -		die "$(gettext "error: cannot combine '--preserve_merges' with '--rebase-merges'")"
> +		die "$(gettext "error: cannot combine '--preserve-merges' with '--rebase-merges'")"
>  fi
>  
>  if test -n "$rebase_merges"
>  then
>  	test -n "$strategy_opts" &&
> -		die "$(gettext "error: cannot combine '--rebase_merges' with '--strategy-option'")"
> +		die "$(gettext "error: cannot combine '--rebase-merges' with '--strategy-option'")"
>  	test -n "$strategy" &&
> -		die "$(gettext "error: cannot combine '--rebase_merges' with '--strategy'")"
> +		die "$(gettext "error: cannot combine '--rebase-merges' with '--strategy'")"
>  fi
>  
>  if test -z "$rebase_root"
Previous: Ralf ThielowNext: Junio C Hamano
Message 2 of 3 in “git-rebase.sh: fix typos in error messages”
  1. git-rebase.sh: fix typos in error messagesRalf Thielow, Sep 28, 2018
  2. Junio C HamanoSep 28, 2018
  3. Junio C HamanoSep 28, 2018

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.