Skip to content

Instantly share code, notes, and snippets.

@oberhamsi
Created March 13, 2013 09:17
Show Gist options
  • Save oberhamsi/5150472 to your computer and use it in GitHub Desktop.
Save oberhamsi/5150472 to your computer and use it in GitHub Desktop.
#!/bin/bash
REVISIONS=`svn log -q --stop-on-copy |grep "^r" | cut -d"r" -f2 | cut -d" " -f1`
for rev in $REVISIONS; do
prevRev=$(($rev-1))
difftext=`svn diff --old=$file@$prevRev --new=$file@$rev | tr -s " " | grep -v " -\ \- " | grep -e "$1"`
if [ -n "$difftext" ]; then
echo "$rev: $difftext"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment