/ Published in: Bash
usage: dgrep foo svn://my-svn-server/trunk/my-file.txt
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function dgrep() { export t=head; for r in `svn log $2 | perl -n -e 'print "$1\n" if m/^r(\d*)\s+/'`; do echo "Revision $r:$t"; svn diff -r $r:$t $2 | grep $1; export t=$r; done; }