The Dual Nature of svn:ignore
Reading around, the svn:ignore command seems to work one of two ways:
- If the file or directory is not already under version control, meta data will be added to the repository ignoring the file开发者_开发百科 or directory for all other team members who check out the project.
- If the file or directory is already under version control, the ignore will only be applied locally and no meta data added to the repository. Other team members will not have the file or directory ignored and can freely commit changes, and those changes will update your locally ignored file when executing an update.
Is this correct?
Edit: Follow-up question here
Referring to the following excerpt from the Tortoise Documentation there is no second nature. svn:ignore
is solely operative on unversioned files.
Versioned files and folders can never be ignored - that's a feature of Subversion. If you versioned a file by mistake, read the section called “Ignore files which are already versioned” for instructions on how to “unversion” it.
精彩评论