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, 09:59 UTC
Message-ID
<20121102095954.GB30221@sigill.intra.peff.net>
In-Reply-To
<vpqfw4sgx33.fsf@grenoble-inp.fr>
On Fri, Nov 02, 2012 at 10:42:24AM +0100, Matthieu Moy wrote:
Show 11 quoted lines
> nisse@lysator.liu.se (Niels Möller) writes:
> 
> > I'd like to have a git commit option which is the opposite of --edit, to
> > use the selected commit message as is, without invoking any editor.
> >
> > Main use case I see would be
> >
> >   git commit --amend --no-edit
> 
> Err, isn't this already working? (maybe your version of Git is too old,
> but my 1.7.9.5 does this at least)
Yup, should be working since 1.7.9.
  $ git tag --contains ':/commit: honour --no-edit' |
    sort -V |
    head -1
  v1.7.9
-Peff
Previous: Matthieu MoyNext: Niels Möller
Message 3 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.