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

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

From
Shulhan <m.shulhan@gmail.com>
Date
Sep 12, 2018, 14:45 UTC
Message-ID
<20180912144504.7498-1-m.shulhan@gmail.com>
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
Follow up question: If this is ok, should the po files also updated?
This is my first patch, sorry if I did some mistakes.
Shulhan (1):
  builtin/remote: quote remote name on error to display empty name
 builtin/remote.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-- 
2.19.0.398.gef7f67bed
Next: Shulhan
Message 1 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.