Merge: improve changelog.sh
authorJean Privat <jean@pryen.org>
Fri, 23 Jan 2015 04:14:12 +0000 (11:14 +0700)
committerJean Privat <jean@pryen.org>
Fri, 23 Jan 2015 04:14:12 +0000 (11:14 +0700)
Don't count merges and display number of commits

Pull-Request: #1117
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

src/changelog.sh

index 754f545..e85393d 100755 (executable)
@@ -26,8 +26,10 @@ 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 "$orig".."$cur"
+git shortlog -ens --no-merges "$orig".."$cur"
 echo log
 echo
 git log --format="* %s [[!commit %h]]" --first-parent "$orig".."$cur" | tac