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

Re: Unbalanced closing paren in help of git commit

From
Jeff King <peff@peff.net>
Date
Jul 8, 2024, 08:54 UTC
Message-ID
<20240708085440.GA819809@coredump.intra.peff.net>
In-Reply-To
<87o7792xgu.fsf@posteo.net>
On Sun, Jul 07, 2024 at 12:33:21PM +0000, Tomas Nordin wrote:
Show 10 quoted lines
> The second line of the help message for git commit looks like this:
> 
>     [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>)]
> 
> See for example https://gitirc.eu/git-commit.html. It has two opening
> parens and three closing parens. <commit> ends with a closing paren
> before the closing bracket. Me and gsish (on IRC) suspect this is a
> misstake.
> 
> What do you think?

Yep, looks like a typo introduced by 00ea64ed7a (doc/git-commit: add documentation for fixup=[amend|reword] options, 2021-03-15).

Want to try your hand at producing a patch? (It's OK if the answer is no; it just seems like a good opportunity for somebody to get their feet wet on contributing).

-Peff
Previous: Tomas NordinNext: Tomas Nordin
Message 2 of 8 in “Unbalanced closing paren in help of git commit”
  1. Tomas NordinJul 7, 2024
  2. Jeff KingJul 8, 2024
  3. Tomas NordinJul 8, 2024
  4. Jeff KingJul 8, 2024
  5. Junio C HamanoJul 8, 2024
  6. Tomas NordinJul 21, 2024
  7. Junio C HamanoJul 22, 2024
  8. Tomas NordinJul 22, 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.