Is there any way to commit only a list of specific files (e.q. just one of the list of files that SVN wants to commit).
I\'m working on MAC OS X under Terminal, without
Due to my subversion state, I had to get creative. svn st
showed M
,A
and ~
statuses. I only wanted M
and A
so...
svn st | grep ^[A\|M] | cut -d' ' -f8- > targets.txt
This command says find all the lines output by svn st
that start with M
or A
, cut using space delimiter, then get colums 8 to the end. Dump that into targets.txt and overwrite.
Then modify targets.txt to prune the file list further. Then run below to commit:
svn ci -m "My commit message" --targets targets.txt
Probably not the most common use case, but hopefully it helps someone.