Merge pull request #452 from akimd/summary-locale

summary: beware of locale issues, and pass options to line-summary
This commit is contained in:
hemanth.hm 2015-09-23 23:00:42 +05:30
commit bb1623ba5d

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