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

Re: [Improvements on messages 1/5] rebase: trivial fix of error message

From
Alex Henrie <alexhenrie24@gmail.com>
Date
Feb 16, 2024, 19:05 UTC
Message-ID
<CAMMLpeS-Q7drd0rHnpMEkuomUGOr0iJi3FGFWihA=oFbdZ=Duw@mail.gmail.com>
In-Reply-To
<20240216101647.28837-2-ash@kambanaria.org>
On Fri, Feb 16, 2024 at 3:16 AM Alexander Shopov <ash@kambanaria.org> wrote:
Show 18 quoted lines
>
> Mark --rebase-merges as option rather than variable name
>
> Signed-off-by: Alexander Shopov <ash@kambanaria.org>
> ---
>  builtin/rebase.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/builtin/rebase.c b/builtin/rebase.c
> index 4084a6abb8..9c6d971515 100644
> --- a/builtin/rebase.c
> +++ b/builtin/rebase.c
> @@ -746,7 +746,7 @@ static void parse_rebase_merges_value(struct rebase_options *options, const char
>         else if (!strcmp("rebase-cousins", value))
>                 options->rebase_cousins = 1;
>         else
> -               die(_("Unknown rebase-merges mode: %s"), value);
> +               die(_("Unknown --rebase-merges mode: %s"), value);

Hi Alexander! The other patches in this series look good to me, but I don't think this one is right. This error message could be about either the --rebase-merges command line option or the rebase.rebaseMerges config option. The word "rebase-merges" is intentionally ambiguous enough to cover both situations and was not intended to be left in English in translations.

-Alex
Previous: Alexander ShopovNext: Alexander Shopov
Message 3 of 9 in “[Improvements on messages 0/5] Disambuiguate between options and commands”
  1. Alexander ShopovFeb 16, 2024
  2. 1/5 rebase: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  3. Alex HenrieFeb 16, 2024
  4. 2/5 transport-helper.c: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  5. 3/5 builtin/remote.c: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  6. 4/5 builtin/clone.c: trivial fix of messageAlexander Shopov, Feb 16, 2024
  7. 5/5 revision.c: trivial fix to messageAlexander Shopov, Feb 16, 2024
  8. Junio C HamanoFeb 16, 2024
  9. Junio C HamanoMar 5, 2024

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.