mirror of
https://github.com/tj/git-extras.git
synced 2026-09-13 08:56:19 -04:00
Merge pull request #94 from wavded/patch-2
changelog pulls tags in reverse order
This commit is contained in:
commit
f89f974bca
|
|
@ -6,7 +6,7 @@ DATE=`date +'%Y-%m-%d'`
|
|||
HEAD="\nn.n.n / $DATE \n==================\n\n"
|
||||
|
||||
if test "$1" = "--list"; then
|
||||
version=`git for-each-ref refs/tags --sort="-*authordate" --format='%(refname)' \
|
||||
version=`git for-each-ref refs/tags --sort=-authordate --format='%(refname)' \
|
||||
--count=1 | sed 's/^refs\/tags\///'`
|
||||
if test -z "$version"; then
|
||||
git log --pretty="format: * %s"
|
||||
|
|
|
|||
Loading…
Reference in a new issue