Skip to content

Commit 3b58798

Browse files
committed
Add script to generate a frequency table of number of commits per day
1 parent a3090df commit 3b58798

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Prints a frequency table of number of commits per day.
4+
5+
# Determine root directory:
6+
root="$(git rev-parse --show-toplevel)"
7+
8+
# Define the path to a utility to generate a frequency table:
9+
tabulate="${root}/tools/awk/tabulate.awk"
10+
11+
# Define the path to a utility to compute the number of commits per day:
12+
commits_per_day="${root}/tools/git/scripts/commits_per_day"
13+
14+
# Compute commits per day, extract the counts column, generate a frequency table, and sort in numeric order:
15+
"${commits_per_day}" | awk '{print $4}' | "${tabulate}" | sort -n
16+
17+
# FIXME: does not account for days with no commits!

0 commit comments

Comments
 (0)