Reputation: 7505
I have set vim as the svn editor.
Now, whenever I do 'svn ci', it opens up vim editor allowing me to enter the commit comments. Below the comment section, there are set files which will be checked in. So, If I don't want certain files to be committed, I remove it from the list of files in the vim editor. But when I save and quit the vim editor, svn still checks-in the file I have removed in the editor.
Is this expected behavior? Or I need to set something in the svn configuration to make it work?
Upvotes: 2
Views: 63
Reputation: 12603
That list of files in the comments section is... well... just comments. It doesn't really do anything - it's just there to help you by letting you see what you are committing.
If you want to not commit certain files, you have to do it beforehand:
svn commit
command instead of committing everything.svn:ignore
property.git-svn
, and simply git reset HEAD
the files you don't want to commit to unstage them.Upvotes: 3
Reputation: 137567
The list in the editor is just informative; it tells you what will be committed but does not influence what will actually be committed (the relationship is the other way round). If that's not what you wanted, you have to kill
the svn ci
(typically by doing Ctrl+Z and then issuing the kill
at the command line). To change what is committed, you need to list the files explicitly to svn ci
; it only defaults to all known, modified files (i.e., those listed when you run svn status
).
If the above way of working isn't to your taste, you might be better off getting one of the many GUIs that wrap around SVN. They almost universally make interactively selecting what to commit easier.
Upvotes: 1