I am trying to get code churn metric for a single file in my git repository. I came across a tool called codemaat (https://github.com/adamtornhill/code-maat) to calculate code churn from git logs. When I run it against the log file it gave me
$ docker run --rm -v /home/user/Documents/codestatisticsVCS/code-maat-master:/codemaat code-maat -l /codemaat/pmygit.log -c git2 -a abs-churn
date,added,deleted,commits
2012-11-27,36,98,4
2012-12-10,24,0,2
2013-05-30,1,1,1
2014-02-14,10,21,1
2014-04-17,8,2,1
..
.. so on
The question is two parts: (1) I was thinking that the code churn metric is single value for a git file, here it gives me a list of added, deleted and commits, so is my understanding correct or not correct, what is the exact formula? (2) Next question is about added, deleted and commits, what do they represent? why commits is 2 or 4, do we want to club?