We have used git log, git diff, and git shortlog to find information about the repository, but there are so many options for those commands on how to find bottlenecks in the source code.
If we want to find the files with the most commits, and these are not necessarily the files with the most line additions or deletions, we can use git log:
- We can use git log between the origin/stable-3.1 and origin/stable-3.2 branches and list all the files changed in each commit. Then, we just need to sort and accumulate the result with some Bash tools as follows:
$ git log origin/stable-3.1..origin/stable-3.2 --format=format: --name-only org.eclipse.jgit.ant.test/META-INF/MANIFEST.MF org.eclipse.jgit.ant.test/pom.xml
- First, we are ...