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

Re: [PATCH] Document 'git commit --no-edit' explicitly

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Nov 2, 2012, 11:29 UTC
Message-ID
<vpqip9ofdjp.fsf@grenoble-inp.fr>
In-Reply-To
<nnlieki6xs.fsf@stalhein.lysator.liu.se>
nisse@lysator.liu.se (Niels Möller) writes:
Show 10 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
>
>> +--no-edit::
>> +	Use the selected commit message without launching an editor.
>> +	For example, `git commit --amend --no-edit` amends a commit
>> +	without changing its commit message.
>
> Looks clear enough to me. Thanks for fixing.
>
> Are -c --no-edit and -C really equivalent in all cases?
I guess so, but I didn't check.
> If so, maybe you want to say that in the documentation for -C.

I don't think we should target exhaustivity in the documentation, so I'm not in favor of *adding* it. But maybe we should replace the doc with stg like:

-c <commit>::
--reedit-message=<commit>::
	Like '-C --edit'.
(it could even make sense to deprecate one of -C/-c)
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Niels MöllerNext: Jeff King
Message 7 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.