Skip to content

Instantly share code, notes, and snippets.

@tobigue
Created July 27, 2016 15:48
Show Gist options
  • Save tobigue/d168b5e272850471639da131ebe2cd2c to your computer and use it in GitHub Desktop.
Save tobigue/d168b5e272850471639da131ebe2cd2c to your computer and use it in GitHub Desktop.
Script to step through changes since a given commit
#!/bin/bash
# step through commits showing the commit information
BASE_REV=$1;
skip=true;
for rev in $(git log --pretty=oneline --reverse --abbrev-commit | awk '{print $1}'); do
if [ "$rev" = "$BASE_REV" ] ; then
skip=false;
fi
if $skip ; then
continue
fi
LESS='CRSX' git show $rev;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment