Skip to content

Instantly share code, notes, and snippets.

@gmcharlt
Created February 19, 2015 00:44
Show Gist options
  • Save gmcharlt/03d6ab78976d9612dab0 to your computer and use it in GitHub Desktop.
Save gmcharlt/03d6ab78976d9612dab0 to your computer and use it in GitHub Desktop.
$ cd /path/to/Evergreen/repo && git checkout master && git pull
$ 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 "$frequency\t$path";
> done | head
1426 Open-ILS/src/sql/Pg/002.schema.config.sql
1164 Open-ILS/examples/fm_IDL.xml
1135 Open-ILS/src/sql/Pg/950.data.seed-values.sql
626 Open-ILS/web/opac/locale/en-US/lang.dtd
387 Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
377 Open-ILS/xul/staff_client/chrome/content/main/menu.js
367 Open-ILS/xul/staff_client/server/circ/util.js
363 Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
346 Open-ILS/xul/staff_client/chrome/content/main/constants.js
323 Open-ILS/src/c-apps/oils_cstore.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment