subversive: only commit explicitly added files
When I do a commit from subversive it populates a list of (and selects by default) any new files in my project directory. I want only those files which I have explicitly added to version control to show up in the commit dialog.
This seems to be the same basic question as this StackOverflow question, but I really want to involve git.
This is a huge pain because people keep accidentally checking in random generated files and directories (e.g. VC++ temp fil开发者_Python百科es: **/Release/vc70.pdb, buildLog.html ) and random settings files for eclipse plugins.
I found a
"Check the new resources in the commit dialog"
option underPreferences > Team > SVN
. This just prevents them from being auto selected, but I want them not to show up at all.I also tried isolating all the different change sets available under 'Models'. Even with No change sets selected commit still adds all uncommitted files on the file system to the commit list.
Eclipse lets you specify resource name patterns so that files which match a pattern are excluded from version control. Find it at Window..Preferences/Team/Ignored Resources. You can specify paths like /temp/something., or just filename patterns like *.tmp.
I'm using Perforce, not svn, but I think it works the same way with any version control plugin.
精彩评论