Subversion – Add all new files

Git rocks.

But sometimes we must use Subversion, or worse still CVS!

Anyway, with git I would usually:

git status
git add .
git commit -a
git push (if necessary)

subversion won’t let you just ‘add .’, which really sucks! As always though, you can geek it up in the command line and type this:

svn status | grep ‘?’ | sed ‘s/^.* /svn add /’ | bash

which filters through the status, greps for the new files starting with ‘?’ and then adds them, outputting to the terminal window. A bit long winded, but it works!