Skip to content

Commit 10eb000

Browse files
Miklos Vajnagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b2c2e4c commit 10eb000

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

git-request-pull.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ if [ -z "$branch" ]; then
6565
status=1
6666
fi
6767

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:
7069
71-
echo "are available in the git repository at:"
72-
echo
70+
%s (%ci)
71+
72+
are available in the git repository at:' $baserev
7373
echo " $url $branch"
7474
echo
7575

0 commit comments

Comments
 (0)