Skip to content

Instantly share code, notes, and snippets.

@jesusgollonet
Last active August 29, 2015 13:56
Show Gist options
  • Save jesusgollonet/9199489 to your computer and use it in GitHub Desktop.
Save jesusgollonet/9199489 to your computer and use it in GitHub Desktop.
get untracked subversion files as a list
# 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