diff options
Diffstat (limited to 'git/git-changelog.sh')
-rwxr-xr-x | git/git-changelog.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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 |