Let's see how many commits in the repository are referring to a bug:
- First of all, we need to know the pattern for bugs referred to in the commit messages. I did this by looking in the commits, and the pattern for jgit is to use Bug: 6 digits; so, to find all of these commits, we use the --grep option for git log, and we can grep for "[Bb][Uu][gG]: [0-9]+":
$ git log --all --grep="^[bB][uU][gG]: [0-9]" commit 3db6e05e52b24e16fbe93376d3fd8935e5f4fc9b Author: Stefan Lay <stefan.lay@sap.com> Date: Wed Jan 15 13:23:49 2014 +0100 Fix fast forward rebase with rebase.autostash=true The folder .git/rebase-merge was not removed in this case. The repository was then still in rebase state, but neither abort nor continue worked. ...