Last active
August 29, 2015 13:56
-
-
Save jesusgollonet/9199489 to your computer and use it in GitHub Desktop.
get untracked subversion files as a list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# given a list of untracked svn files like | |
# ? trunk/content/build/backend/bin | |
# ? trunk/content/build/backend/ban | |
# ? trunk/content/build/backend/bun | |
# this will create a list out of them, then svn add them | |
# svn add trunk/content/build/backend/bin trunk/content/build/backend/ban trunk/content/build/backend/bun | |
svn_add_untracked(){ | |
svn status | grep '^?.*' | sed 's/? //' | xargs svn add | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment