blob: a18ce61137ec0f5ffb6a2d89edc6309bcfdfe344 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# https://docs.mergestat.com/blog/2023/01/03/finding-code-hotspots-in-git-repos
#
# Finds hotspots as the files most frequently modified (by number of commits).
set -euo pipefail
main() {
git log --format=format: --name-only --since=12.month "$@" |
grep -vE '^$' |
sort |
uniq -c |
sort -nr |
head -50
}
main "$@"
|