Created
December 9, 2013 10:52
-
-
Save eeichinger/7870464 to your computer and use it in GitHub Desktop.
as someone who regularly gets on site with a client and has to quickly work himself into an existing codebase, I found these tools interesting. I stole them from Greg Young's excellent talk "How to get productive on a project in 24h" at http://www.youtube.com/watch?v=KaLROwp-VDY The change rate of modules and files over time is especially intere…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find the modules/folders with highest number of changes | |
git rev-list --objects --all | awk '$2' | sort -k2 | uniq -cf1 | sort -rn | head | |
# find the files with the highest number of changes | |
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 "$frequency\t$path"; | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment