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

Re: Wishlist: git commit --no-edit

From
Jeff King <peff@peff.net>
Date
Nov 2, 2012, 12:45 UTC
Message-ID
<20121102124522.GA6817@sigill.intra.peff.net>
In-Reply-To
<CACnwZYe-za3Q0qvkfQ=qatB1-8eLUFA6ZzfS41yeqrV=8rVzGA@mail.gmail.com>
[+cc git@vger; please keep discussion on list]
On Fri, Nov 02, 2012 at 10:37:27AM -0200, Thiago Farina wrote:
Show 13 quoted lines
> >> >   git commit --amend --no-edit
> [...]
> > Yup, should be working since 1.7.9.
> [...]
> I doesn't appear in the help either:
> 
> $ git version
> git version 1.8.0.rc2
> 
> $ git commit -h 2>&1 | grep edit
>     -c, --reedit-message <commit>
>                           reuse and edit message from specified commit
>     -e, --edit            force edit of commit

Yeah, parse_options doesn't advertise negative forms of boolean options, as they are implied. I don't think it's a big deal, especially now that it is covered in more detail in the manpage.

I think changing it would probably involve adding "--no-edit" as a separate entry in the options struct.

-Peff
Previous: Jeff King
Message 9 of 9 in “Wishlist: git commit --no-edit”
  1. Niels MöllerNov 2, 2012
  2. Matthieu MoyNov 2, 2012
  3. Jeff KingNov 2, 2012
  4. Niels MöllerNov 2, 2012
  5. Document 'git commit --no-edit' explicitlyMatthieu Moy, Nov 2, 2012
  6. Niels MöllerNov 2, 2012
  7. Matthieu MoyNov 2, 2012
  8. Jeff KingNov 2, 2012
  9. Jeff KingNov 2, 2012

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.