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

Re: Wishlist: git commit --no-edit

From
NMNiels Möller <nisse@lysator.liu.se>
Date
Nov 2, 2012, 10:07 UTC
Message-ID
<nnpq3wiaha.fsf@stalhein.lysator.liu.se>
In-Reply-To
<vpqfw4sgx33.fsf@grenoble-inp.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> Err, isn't this already working? (maybe your version of Git is too old,
> but my 1.7.9.5 does this at least)
It may be that I'm confused.
It doesn't work in the version I have (1.7.2.5, debian packaged).

And then I also had a quick look in the source code (of a fresh pull from https://github.com/git/git.git). In builtin/commit.c, I didn't see any no-edit flag (but I maybe it's in the OPT_BOOL magic (which is different from OPT_BOOLEAN?)).

And it's also not mentioned in Documentation/git-commit.txt or on http://kernel.org/pub/software/scm/git/docs/git-commit.html.

If commit --no-edit does work in recent versions, then all is fine, except possibly the documentation of it. Thanks.

Regards, /Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
Previous: Jeff KingNext: Matthieu Moy
Message 4 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.