Created
July 27, 2016 15:48
-
-
Save tobigue/d168b5e272850471639da131ebe2cd2c to your computer and use it in GitHub Desktop.
Script to step through changes since a given commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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