mirror of
https://github.com/tj/git-extras.git
synced 2026-09-16 02:16:17 -04:00
Revert "Make sure to get the last chronological tag, instead of relying on the bogus git tag sorting."
This reverts commit 27e8049fd7.
This commit is contained in:
parent
c8dc5a8a19
commit
f659f34375
|
|
@ -6,8 +6,7 @@ DATE=`date +'%Y-%m-%d'`
|
|||
HEAD="\nn.n.n / $DATE \n==================\n"
|
||||
|
||||
if test "$1" = "--list"; then
|
||||
version=`git for-each-ref refs/tags --sort=-authordate --format='%(refname)' \
|
||||
--count=1 | sed 's/^refs\/tags\///'`
|
||||
version=`git tag | tail -n 1`
|
||||
if test -z "$version"; then
|
||||
git log --pretty="format: * %s"
|
||||
else
|
||||
|
|
@ -21,4 +20,4 @@ else
|
|||
if [ -f $CHANGELOG ]; then cat $CHANGELOG >> $tmp; fi
|
||||
mv $tmp $CHANGELOG
|
||||
test -n "$EDITOR" && $EDITOR $CHANGELOG
|
||||
fi
|
||||
fi
|
||||
Loading…
Reference in a new issue