So for no real reason, other than to see if I could, I figured out how to get the top 10 changed (well it could be any number) files in the Koha code base
git rev-list --objects --all | awk '$2' | sort -k2 | uniq -cf1 | sort -rn | while read frequency sample path do [ "blob" == "$(git cat-file -t $sample)" ] && echo -e "$frequencyt$path"; done | head
This told me (where the number is the number of commits)
- 3006 installer/data/mysql/updatedatabase.pl
- 1220 C4/Biblio.pm
- 1141 C4/Search.pm
- 1137 kohaversion.pl
- 997 C4/Circulation.pm
- 996 installer/data/mysql/kohastructure.sql
- 914 C4/Auth.pm
- 796 opac/opac-search.pl
- 752 circ/circulation.pl
- 710 opac/opac-detail.pl
You could of course leave the head off to get all or do head -20 to get the top twenty etc.
Like I said, useless statistic, but kinda interesting nonetheless
So we introduce bugs on updatedatabase.pl too often! (compared to kohaversion.pl updates)
LikeLike