Skip to content

Commit 95b7c52

Browse files
committed
Merge pull request #236 from jbnicolai/align-authors-git-summary
Uses column -t to align summary output in a table.
2 parents be12410 + 04c4343 commit 95b7c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/git-summary

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ authors() {
4848
{ args[NR] = $0; sum += $0 }
4949
END {
5050
for (i = 1; i <= NR; ++i) {
51-
printf "%-30s\t %2.1f%%\n", args[i], 100 * args[i] / sum
51+
printf "%s,%2.1f%%\n", args[i], 100 * args[i] / sum
5252
}
5353
}
54-
'
54+
' | column -t -s,
5555
}
5656

5757
#

0 commit comments

Comments
 (0)