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

Back quote typo in error messages (?)

From
FCFabrizio Cucci <fabrizio.cucci@gmail.com>
Date
Feb 15, 2017, 21:06 UTC
Message-ID
<CAOxYW4z=bABqhmHWCc9rizykMcGBjDvqLEuqpJ6DtPve5442Fw@mail.gmail.com>
Hello everyone,

it's been a couple of days that I keep noticing something (very minor) that my OCD for symmetric things can't really stand.

If you run the following command:
$ git branch --i-dont-exists
you should get:
error: unknown option `i-dont-exists'

Shouldn't the wrong flag be surrounded by two single quotes instead of a back quote and a single quote?

For the sake of completeness, I'm on Mac running Git 2.10.1.

Thanks, Fabrizio

Next: Jeff King
Message 1 of 8 in “Back quote typo in error messages (?)”
  1. Fabrizio CucciFeb 15, 2017
  2. Jeff KingFeb 15, 2017
  3. Junio C HamanoFeb 15, 2017
  4. Fabrizio CucciFeb 15, 2017
  5. Jeff KingFeb 15, 2017
  6. Fabrizio CucciFeb 16, 2017
  7. Jeff KingFeb 16, 2017
  8. Fabrizio CucciFeb 16, 2017

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.