diff --git a/bin/git-summary b/bin/git-summary index bfeec6f..5388866 100755 --- a/bin/git-summary +++ b/bin/git-summary @@ -47,6 +47,9 @@ file_count() { # authors() { + # a rare unicode character is used as separator to avoid conflicting with + # author name. However, Linux column utility will escape tab if separator + # specified, so we do unesaping after it. git shortlog -n -s $commit | LC_ALL=C awk ' { args[NR] = $0; sum += $0 } END { @@ -54,7 +57,7 @@ authors() { printf "%s♪%2.1f%%\n", args[i], 100 * args[i] / sum } } - ' | column -t -s♪ + ' | column -t -s♪ | sed "s/\\\x09/\t/g" } #