Reputation: 45283
Is there a way to set an ignore pattern for the whole repository, or check in an ignore file along with the code itself?
Otherwise, all devs current and future have to synchronize their ignore patterns via email, and there's always people that don't do it.
Edit as a response to AI G's answer below.
And it's worth noting again that, unlike the global-ignores option, the patterns found in the svn:ignore property apply only to the directory on which that property is set, and not to any of its subdirectories. The svn:ignore property is a good way to tell Subversion to ignore files that are likely to be present in every user's working copy of that directory, such as compiler output ...
Subversion 1.8 provides a more powerful version of the svn:ignore property, the svn:global-ignores property. Like the svn:ignore property, svn:global-ignores can only be set on a directory and contains file patterns Subversion uses to determine ignorable objects.[21] These ignore patterns are also appended to any patterns defined in the global-ignores runtime configuration option together with any svn:ignore defined patterns. Unlike svn:ignore however, the svn:global-ignores property is inheritable [22] and applies to all paths under the directory on which the property is set, not just the immediate children of the directory.
Luke
Upvotes: 3
Views: 372
Reputation: 15167
Add the ignore pattern to the head of repository. Each dev will get it when they check out the repo. In v1.8 you can;
svn propset svn:global-ignores *.ext
Check out the docs on svn:ignore here.
Upvotes: 3