Skip to content

Commit

Permalink
request-pull: avoid mentioning that the start point is a single commit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Vajna authored and gitster committed Jan 30, 2010
1 parent b2c2e4c commit 10eb000
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-request-pull.sh
Expand Up @@ -65,11 +65,11 @@ if [ -z "$branch" ]; then
status=1
fi

echo "The following changes since commit $baserev:"
git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/ \1/'
git show -s --format='The following changes since commit %H:
echo "are available in the git repository at:"
echo
%s (%ci)
are available in the git repository at:' $baserev
echo " $url $branch"
echo

Expand Down

0 comments on commit 10eb000

Please sign in to comment.