We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac735dc commit 62ecac6Copy full SHA for 62ecac6
tools/git/scripts/additions_per_weekday
@@ -11,17 +11,13 @@ shortstats="${root}/tools/git/scripts/shortstats"
11
# * `shortstats`
12
# - Get summary statistics for each commit.
13
# * `awk '{}'`
14
-# - Extract the commit timestamp and number of additions.
15
-# * `perl -pe ''`
16
-# - Convert each Unix timestamp to a date string.
17
-# * `awk '{}'`
18
# - Tabulate the weekday totals.
19
-"${shortstats}" | awk '{print $1 OFS $5}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
+"${shortstats}" | awk '
20
BEGIN {
21
split("Mon Tue Wed Thu Fri Sat Sun", days);
22
}
23
{
24
- lines[$1] += $6
+ lines[$1] += $9
25
26
END {
27
for (i = 1; i <= 7; i++) {
0 commit comments