summary: beware of locale issues, and pass options to line-summary

* bin/git-summary: here.
This commit is contained in:
Akim Demaille 2015-09-23 19:27:19 +02:00
parent 332bec0f1a
commit 5f61bfad6e

View file

@ -48,7 +48,7 @@ file_count() {
#
authors() {
git shortlog -n -s $commit | awk '
git shortlog -n -s $commit | LC_ALL=C awk '
{ args[NR] = $0; sum += $0 }
END {
for (i = 1; i <= NR; ++i) {
@ -69,7 +69,8 @@ repository_age() {
# summary
if test "$1" = "--line"; then
git line-summary
shift
git line-summary "$@"
echo
else