March 2015
Intermediate to advanced
218 pages
5h 3m
English
In a large system under heavy development, hundreds of commits are made each day. Manually inspecting that data is error-prone and, more importantly, takes time away from all the fun programming. Let’s automate this.
Calculating change frequencies is straightforward: parse the log file and summarize the number of times each module occurs. You could also add more complex processing to keep track of renamed or moved files.
You already know about Code Maat. Now we’re going to use it to analyze change frequencies. The git output is fine for humans but too verbose for a tool. The following command generates a more compact version:
| | prompt> git log --pretty=format:'[%h] %an %ad %s' --date=short \ |
| | --numstat --before=2013-11-01 ... |
Read now
Unlock full access