Skip to content

Commit 02b7b21

Browse files
committed
Add script to compute the mean commit interval
1 parent 6669699 commit 02b7b21

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Computes the mean commit interval.
4+
#
5+
# References:
6+
#
7+
# * Kolassa, Carsten, Dirk Riehle, and Michel A. Salim. 2013. "The Empirical Commit Frequency Distribution of Open Source Projects." In *Proceedings of the 9th International Symposium on Open Collaboration*, 18:1–:8. WikiSym '13. New York, NY, USA: ACM. doi:[10.1145/2491055.2491073](http://dx.doi.org/10.1145/2491055.2491073).
8+
9+
# Determine root directory:
10+
root="$(git rev-parse --show-toplevel)"
11+
12+
# Define the path to a utility to compute commit intervals:
13+
commit_intervals="${root}/tools/git/scripts/commit_intervals"
14+
15+
# Define the path to a utility to compute the arithmetic mean:
16+
mean="${root}/tools/awk/mean.awk"
17+
18+
# * `commit_intervals`
19+
# - Compute commit intervals.
20+
# * `mean`
21+
# - Compute the mean.
22+
"${commit_intervals}" | "${mean}"

0 commit comments

Comments
 (0)