added git scripts
This commit is contained in:
parent
55b9eab762
commit
d7ac156966
1 changed files with 18 additions and 0 deletions
18
git/git_changelog.sh
Executable file
18
git/git_changelog.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Author:Andrey Nikishaev, Gunnar Lindholm
|
||||||
|
echo "CHANGELOG"
|
||||||
|
echo ----------------------
|
||||||
|
git for-each-ref --sort='*authordate' --format='%(tag)' refs/tags |tac |grep -v '^$' | while read TAG ; do
|
||||||
|
echo
|
||||||
|
if [ $NEXT ];then
|
||||||
|
echo [$NEXT]
|
||||||
|
else
|
||||||
|
echo "[Current]"
|
||||||
|
fi
|
||||||
|
GIT_PAGER=cat git log --no-merges --format=" * %s" $TAG..$NEXT
|
||||||
|
NEXT=$TAG
|
||||||
|
done
|
||||||
|
FIRST=$(git tag -l | head -1)
|
||||||
|
echo
|
||||||
|
echo [$FIRST]
|
||||||
|
GIT_PAGER=cat git log --no-merges --format=" * %s" $FIRST
|
Loading…
Add table
Add a link
Reference in a new issue