tags:

views:

600

answers:

3

Hi all! 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 any UI. thank you

+9  A: 

Sure. Just list the files:

$ svn ci -m "Fixed all those horrible crashes" foo bar baz graphics/logo.png

I'm not aware of a way to tell it to ignore a certain set of files. Of course, if the files you do want to commit are easily listed by the shell, you can use that:

$ svn ci -m "No longer sets printer on fire" printer-driver/*.c

You can also have the svn command read the list of files to commit from a file:

$ svn ci -m "Now works" --targets fix4711.txt
unwind
so, basically, i should name the files explicitly? i can't just say don't touch this particular file?
ifesdjeen
+2  A: 

You basically put the files you want to commit on the command line

svn ci file1 file2 dir1/file3
Wienczny
so, basically, i should name the files explicitly? i can't just say don't touch this particular file?
ifesdjeen
if run without arguments svn commits all changed filesif run with a file as argument this file is commitedif run with a directory all changed files in the directory are commited
Wienczny
+3  A: 

Besides listing the files explicitly as shown by unwind and Wienczny, you can setup change lists and checkin these. These allow you to manage disjunct sets of changes to the same working copy.

You can read about them in the online version of the excellent SVN book.

sbi