Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

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

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:33
Subsystem: the rest · Maintainer: Linus Torvalds

Possibly related (same subject, not in this thread)


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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help