This file contains 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/sh | |
# | |
# git-create-review | |
# Generates a diff based on a grep in the comments of the commits | |
REV_NUMS=`git log --grep=$1 --oneline -i --reverse | awk '{print $1;}'` | |
for revhash in $REV_NUMS; do | |
PREV_SVN_REV=`git svn find-rev $revhash^` | |
SVN_REV=`git svn find-rev $revhash` |