/ Published in: SVN
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Whippy posts on May 15, 2009 at 07:04 To get the 'A' status, the file must already be added. You need to match a '?'. Here is what I use: svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add svn commit The first grep gets rid of any hidden files (which may be present if you use IDEs such as Zend studio). The second grep makes sure you only get files that are currently of unknown status (ie the new ones). awk grabs the file names. xargs passes the file names as parameters to svn add.
URL: http://codesnippets.joyent.com/posts/show/45