Skip to content

Instantly share code, notes, and snippets.

@jslim89
Created November 9, 2012 06:42
Show Gist options
  • Save jslim89/4044092 to your computer and use it in GitHub Desktop.
Save jslim89/4044092 to your computer and use it in GitHub Desktop.
SVN commit a modified file with a keyword that match the file path
$ svn st | grep -v '^?' | awk '{print $2}' | grep "keyword" | xargs svn commit -m "- commit message"
@jslim89
Copy link
Author

jslim89 commented Nov 9, 2012

i.e.
M /path/to/first/dir/filename.txt
M /path/to/first/dir/filename2.txt
M /path/to/second/dir/filename_with_keyword.txt
M /path/to/third/dir/filename_with_another_keyword.txt
? /path/to/unknown/filename.txt

This command will commit:
/path/to/second/dir/filename_with_keyword.txt
/path/to/third/dir/filename_with_another_keyword.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment