extra: git-multi-shortlog: Print diff stat summary as well for each repo

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-07-26 14:11:18 +02:00
parent e6d7194c19
commit ea430c0cc1
Signed by: c8h4
GPG key ID: 1538094429952F86

View file

@ -2,7 +2,7 @@ generate-shortlog() {
local hash
hash="$(git log --format=%h -"$1" | tail -n1)"
git shortlog -w72,2,4 -"$1"
git diff --stat=72 "$hash"^ HEAD
git diff --stat=72 --summary "$hash"^ HEAD
}
if [ $# -eq 0 ] || [ "${1-x}" == -h ] || [ "${1-x}" == --help ]; then