# Find all SHAS with a single line diff SHAS=`git log --stat --oneline |\ grep "| 2 +-" -B1 |\ egrep -v "^(\s|-)" |\ cut -d' ' -f1` # Of those SHAS, find the ones with single character diff git show --word-diff=plain -p --oneline `echo $SHAS` |\ egrep "(\[-|{\+).(\+}|-\])" -B10 |\ grep "$SHAS"