git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] request-pull: avoid mentioning that the start point is a single commit
@ 2010-01-29  1:18 Miklos Vajna
  2010-01-29  1:19 ` Shawn O. Pearce
  2010-01-29  7:33 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Miklos Vajna @ 2010-01-29  1:18 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Previously we ran shortlog on the start commit which always printed
"(1)" after the start commit, which gives no information, but makes the
output less easy to read. Avoid doing so.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---

So for example the 'git request-pull master~2 . master' output diff is
the following here:

	 The following changes since commit 68186857a9bb0a71e9456155623e02d398a5b817:
	-  Junio C Hamano (1):
	-        Merge branch 'il/maint-colon-address'
	+  Junio C Hamano: Merge branch 'il/maint-colon-address'

	 are available in the git repository at:

 git-request-pull.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-request-pull.sh b/git-request-pull.sh
index 630cedd..8475919 100755
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
@@ -66,7 +66,7 @@ if [ -z "$branch" ]; then
 fi
 
 echo "The following changes since commit $baserev:"
-git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/  \1/'
+git log --max-count=1 --pretty=format:"  %an: %s%n%n" $baserev
 
 echo "are available in the git repository at:"
 echo
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-29 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29  1:18 [PATCH] request-pull: avoid mentioning that the start point is a single commit Miklos Vajna
2010-01-29  1:19 ` Shawn O. Pearce
2010-01-29  7:33 ` Junio C Hamano
2010-01-29 14:17   ` [PATCH v2] " Miklos Vajna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).