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

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

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Nov 2, 2012, 10:39 UTC
Message-ID
<1351852770-13897-1-git-send-email-Matthieu.Moy@imag.fr>
In-Reply-To
<nnpq3wiaha.fsf@stalhein.lysator.liu.se>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
I was tempted to merge the paragraph with --edit::, but I thought this
may add confusion. The use-cases for --edit and --no-edit are really
different so I went for a separate paragraph, right below the --edit one.
 Documentation/git-commit.txt | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 3acf2e7..44b4347 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -188,6 +188,11 @@ OPTIONS
 	commit log message unmodified.  This option lets you
 	further edit the message taken from these sources.
 
+--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.
+
 --amend::
 	Used to amend the tip of the current branch. Prepare the tree
 	object you would want to replace the latest commit as usual
-- 
1.8.0.319.g8abfee4
Previous: Niels MöllerNext: Niels Möller
Message 5 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.