mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 16:36:22 -04:00
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:
parent
77f90aeba0
commit
2c346d256a
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue