mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
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.
9 lines
166 B
Bash
Executable file
9 lines
166 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if test "$1" = "--all"; then
|
|
git shortlog -n -s $@ | awk '{print substr($0,index($0,$2)) " (" $1 ")"}'
|
|
echo
|
|
fi
|
|
|
|
echo total `git rev-list --count HEAD`
|