Update bit/git-count

Matching "):" in the end can match commit subjects by mistake i.e. if
commit subject ends with "):" too (e.g. linux project has one such
commit).

To avoid this and any similar problems print summary only (-s).
Restructure output to look exactly as it was before with awk.
This commit is contained in:
Alexander Krasnukhin 2012-11-17 13:17:19 +01:00
parent 77f90aeba0
commit 2c346d256a

View file

@ -1,7 +1,7 @@
#!/bin/sh
if test "$1" = "--all"; then
git shortlog -n $@ | grep "):$" | sed 's|:||'
git shortlog -n -s $@ | awk '{print substr($0,index($0,$2)) " (" $1 ")"}'
echo
fi