Whatchanged - Git history as HTML Report

Recently I was requested to produce a report of changes in a git repo between two tags by testing team. I am not sure the basis of the request, as they can go through the git repo themselves. I also kind of thought it is better to have a separate report that can be uploaded to their release ticket for archival; instead of going through each commits between revisions or any changes to repo history.

Initially they want to produce an excel report I wrote a simple bash script to generate the files modified between two revisions and their commit logs (reason for the changes).

As usual, scope of the request grown to include source comparision with diff as well. Somebody had shared Beyondcompare report with them earlier. Since I don’t own a license and an opensource fellow, I built one with the help of git log, git diff and diff2html. I was able to produce a decent report with this, unfortunately it takes a long time to render if the no. of files and commits are on a larger side.

Anyhow, it does the job, I’m proud of the accomplishment in my first week here in my dream country.

If you find it useful and interested in extending, please go through the TODO list of repo and share PR.

Github: Whatchanged

Usage & Output

# sh whatchanged.sh <startCommitSHA> <endCommitSHA>


sh whatchanged.sh 3b9aea39c7 37c07544408b
Whatchanged - sample report

Post Comment