Created
March 22, 2013 15:56
-
-
Save davidchase/5222399 to your computer and use it in GitHub Desktop.
Committing only modified files in svn.. I use this to avoid committing .DS_Store files and it comes in handy a few times. Using sed and xargs.
This file contains hidden or 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
Filename without spaces: | |
svn st | sed -n 's/^M//p' | xargs svn commit -m "modified" | |
Filename with spaces: | |
svn st | sed -n 's/$/"/; s/^M */"/p' | xargs svn commit -m "modified" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment