From f44fb7920627ac00d2c3f949793d0d92fdea1bcd Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 26 Nov 2010 03:11:48 +0100 Subject: Add changelog git script --- git/git-changelog.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 git/git-changelog.sh (limited to 'git/git-changelog.sh') diff --git a/git/git-changelog.sh b/git/git-changelog.sh new file mode 100755 index 0000000..33719ec --- /dev/null +++ b/git/git-changelog.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +module="$1" +last="$2" +new="$3" + +if [ -z "$module" -o -z "$last" -o -z "$new" ] ; then + echo "Usage: $0 module last-ref new-ref" + exit 1 +fi + +echo "Module $module - Tag $new" +#echo "git archive --prefix=$module-$new/ $new | lzma -9 > ../$module-$new.tar.lzma" +git log --no-merges $new ^$last > ../$module-ChangeLog-$new +git shortlog --no-merges $new ^$last > ../$module-ShortLog +git diff --stat --summary -M $last $new > ../$module-diffstat-$new -- cgit v1.2.3