adamtornhill / code-maat

A command line tool to mine and analyze data from version-control systems
http://www.adamtornhill.com/code/codemaat.htm
2.37k stars 218 forks source link

Enforce the pre-conditions on the messages analysis #74

Closed adamtornhill closed 3 years ago

adamtornhill commented 3 years ago

Solves issue #57

The messages analysis requires a commit message. The commit message isn't included in the git2 format, and hence the analysis doesn't find anything to analyse. The old behavior was to simply return an empty result set. This was confusing, so I've changed it do fail instead.

Note that the message analysis can easily be done from a shell via git log --pretty=format:'%s' | grep -o "[Bb]ug"