Browse files

Show ChangeLog since last tag.

The script was change to automatically get the ChangeLog since last
commit.
  • Loading branch information...
1 parent ca9fe01 commit 4955b6293cb6846a8492a5fa29dc1cf74ebc5626 @walac committed Sep 9, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 gencl.sh
View
8 gencl.sh
@@ -1,10 +1,6 @@
#!/bin/sh
changelog_file=ChangeLog
-additional_options=''
+latest_tag=$(git describe --abbrev=0)
-if [ "$1" != "" ]; then
- additional_options="--since=$1"
-fi
-
-git log $additional_options --pretty='format:Author: %an%n%w(0,4,4)%B' > $changelog_file
+git log --pretty='format:Author: %an%n%w(0,4,4)%B' $latest_tag..HEAD > $changelog_file

0 comments on commit 4955b62

Please sign in to comment.