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

Re: git-fmt-merge-message problem..

From
Linus Torvalds <torvalds@osdl.org>
Date
Jul 13, 2006, 05:29 UTC
Message-ID
<Pine.LNX.4.64.0607122222310.5623@g5.osdl.org>
In-Reply-To
<7vlkqyw0om.fsf@assigned-by-dhcp.cox.net>
On Wed, 12 Jul 2006, Junio C Hamano wrote:
> 
> Yes, this is a simple mistranslation from Perl to C.  A patch
> will follow shortly.
On a similar vein, how about this?

I always end up editing the revert sentence by hand to make grammatical sense.

I think we always talk about "commit xyz".

We never talk about "xyz commit", except when we end up talking about a commit as a branch head (notably, I would say "the HEAD commit", or possibly "the top-of-master commit", but here $commit is a SHA1 name, not anything else).

Hmm?
		Linus
---
diff --git a/git-revert.sh b/git-revert.sh
index de8b5f0..2bf35d1 100755
--- a/git-revert.sh
+++ b/git-revert.sh
@@ -84,7 +84,7 @@ revert)
 		s/^[^ ]* /Revert "/
 		s/$/"/'
 	echo
-	echo "This reverts $commit commit."
+	echo "This reverts commit $commit."
 	test "$rev" = "$commit" ||
 	echo "(original 'git revert' arguments: $@)"
 	base=$commit next=$prev
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 6 in “git-fmt-merge-message problem..”
  1. Linus TorvaldsJul 13, 2006
  2. Junio C HamanoJul 13, 2006
  3. Junio C HamanoJul 13, 2006
  4. Linus TorvaldsJul 13, 2006
  5. Junio C HamanoJul 13, 2006
  6. Johannes SchindelinJul 13, 2006

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.