mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
summary: beware of locale issues, and pass options to line-summary
* bin/git-summary: here.
This commit is contained in:
parent
332bec0f1a
commit
5f61bfad6e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue