changelog.sh: also count commits
authorJean Privat <jean@pryen.org>
Tue, 20 Jan 2015 07:29:28 +0000 (14:29 +0700)
committerJean Privat <jean@pryen.org>
Tue, 20 Jan 2015 07:29:28 +0000 (14:29 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

src/changelog.sh

index e162f99..e85393d 100755 (executable)
@@ -26,6 +26,8 @@ echo "shortstat"
 git diff --shortstat "$orig".."$cur"
 echo "PR"
 git log --first-parent "$orig".."$cur" | grep 'Pull-Request: #' | wc -l
+echo "non-merge commits"
+git log --no-merges --oneline "$orig".."$cur"  | wc -l
 echo "shortlog"
 git shortlog -ens --no-merges "$orig".."$cur"
 echo log