13 echo "Usage: $0 DIRECTORY [commits|changes]" >&2
17 find "$root" -type d
-name '.git' \
21 git log
--format=%ci
--numstat
24 /^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} / {
31 /^[0-9]+\s+[0-9]+\s+/ {
34 changes[year] += additions + deletions
38 for (year in changes) {
39 print year, "commits", commits[year]
40 print year, "changes", changes[year]
43 |
awk -v type_selected
="$typ" '
49 if (value > max[type])
55 split(yeartype, yt, SUBSEP)
59 if (type == type_selected) {
61 for (i = 1; i <= (value * 100) / max[type]; i++) {
This page took 0.077859 seconds and 5 git commands to generate.