Return to Snippet

Revision: 18087
at September 22, 2009 15:01 by hacker


Initial Code
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; }

Initial URL

                                

Initial Description
usage: dgrep foo svn://my-svn-server/trunk/my-file.txt

Initial Title
function for grepping a string in every diff between two successional svn revisions of a file

Initial Tags
svn, Bash

Initial Language
Bash