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

Re: [RFC PATCH 0/1] builtin/remote: quote remote name on error to display empty name

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 12, 2018, 16:20 UTC
Message-ID
<xmqqftyen0w8.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180912144504.7498-1-m.shulhan@gmail.com>
Shulhan <m.shulhan@gmail.com> writes:
Show 11 quoted lines
> Rationale: consistent error format
>
> When adding new remote name with empty string, git will print the
> following error message,
>
>   fatal: '' is not a valid remote name\n
>
> But when removing remote name with empty string as input, git did not
> print the empty string with quote,
>
>   fatal: No such remote: \n

Thanks for noticing. I think the consistency given by the patch 1/1 is good.

> Follow up question: If this is ok, should the po files also updated?

They should be updated, but not by you and not as part of this change. The po files will be updated by our l10n coordinator, typically when it gets close to the release time, for all the message changes done during the release cycle.

Thanks.
Previous: Junio C Hamano
Message 4 of 4 in “builtin/remote: quote remote name on error to display empty name”
  1. 0/1 builtin/remote: quote remote name on error to display empty nameShulhan, Sep 12, 2018
  2. 1/1 builtin/remote: quote remote name on error to display empty nameShulhan, Sep 12, 2018
  3. Junio C HamanoSep 12, 2018
  4. Junio C HamanoSep 12, 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.