Tuesday, August 21, 2007

svn add




I wanted to "svn add" all the files in a directory tree that hadn't already been added, and used the following bit of UNIX goodness:


svn status | grep \? | cut -d ' ' -f 7 | xargs svn add