@matheusbsbs / matheus-bagliano / commits / 10eb00073f
Fork 0

request-pull: avoid mentioning that the start point is a single commit

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. Instead of giving the author name of the commit, use the space for committer timestamp to help recipient judge the freshness of the offered branch more easily. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed Jan 29, 2010 at 15:17 UTC 10eb00073f07e1c40a17327417aa39cc4cc9c254
1 file changed +4 -4
git-request-pull.sh
+4 -4
@@ -65,11 +65,11 @@ if [ -z "$branch" ]; then
65 status=1
66 fi
67
68 -echo "The following changes since commit $baserev:"
69 -git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/ \1/'
68 +git show -s --format='The following changes since commit %H:
69
71 -echo "are available in the git repository at:"
72 -echo
70 + %s (%ci)
71 +
72 +are available in the git repository at:' $baserev
73 echo " $url $branch"
74 echo
75