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

Re: [PATCH] Clarify documentation on commit message strip

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 27, 2015, 17:31 UTC
Message-ID
<xmqqh9s1xytr.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1429940565-14947-1-git-send-email-iveqy@iveqy.com>
Fredrik Gustafsson <iveqy@iveqy.com> writes:
> I agree that it is very clear once you do edit the commit message. My main
> point with this patch was to clarify -v, since it's not obvious from the
> documentation that it will be removed.

While I agree with you that the documentation should make it clear that the patch will not be part of the commit, I think the root cause of the current "unclear-ness" is because the documentation does not make it clear *WHY* the "-v" option gives the patch text there.

Doing something like this on top of your patch may clarify the reason what "-v" is used for, and I suspect that it may even make it unnecessary to explicitly say that the patch text will not be part of the log message (but I didn't remove that with this "how about this" follow-up).

 Documentation/git-commit.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 1db4c7f..617dea0 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -282,7 +282,9 @@ configuration variable documented in linkgit:git-config[1].
 --verbose::
 	Show unified diff between the HEAD commit and what
 	would be committed at the bottom of the commit message
-	template.  Note that this diff output doesn't have its
+	template to help the user describe the commit by reminding
+	what changes the commit has.
+	Note that this diff output doesn't have its
 	lines prefixed with '#'. This diff will not be a part
 	of the commit message.
 +
Previous: Fredrik GustafssonNext: Fredrik Gustafsson
Message 4 of 5 in “Clarify documentation on commit message strip”
  1. Clarify documentation on commit message stripFredrik Gustafsson, Apr 24, 2015
  2. Junio C HamanoApr 25, 2015
  3. Clarify documentation on commit message stripFredrik Gustafsson, Apr 25, 2015
  4. Junio C HamanoApr 27, 2015
  5. Fredrik GustafssonApr 27, 2015

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.