Skip to content
Bash script I use to share the changes between two commits as report
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
README.md
head.html
tail.html
whatchanged.sh

README.md

Whatchanged?

This is a simple bash script to help me share a report of file changed between two commits. I started this as I could not find a way to pipe the git log output with xargs.

Anyhow, bash script ended up better options for writing it as html for other posibilities.

There were about atleast three different implementation of the script, refer history of whatchanged.sh to see other revisions of the script.

How to use

# sh whatchanged.sh <startCommitSHA> <endCommitSHA>

e.g.,

sh whatchanged.sh 3b9aea39c7 37c07544408b

Output

sample output - screenshot

TODO:

  • Commit logs by file
  • Excel friendly html table
  • With source diff
  • Diff options: side-by-side or line-by-line and clear
  • Filter files with certain extensions
  • Style & Typography - not happy with it
  • HTML Filter by file types?

A lot of dirty tricks involved, but hey it gets the job done. Will try to tidy up later*

Feel free to send me a pull requests

You can’t perform that action at this time.