SVN - 如何为整个 repository/team 设置忽略模式?
SVN - How can I set an ignore pattern for an entire repository/team?
有没有办法为整个存储库设置忽略模式,或者将忽略文件与代码本身一起签入?
否则,所有当前和未来的开发人员都必须通过电子邮件同步他们的忽略模式,而且总有人不这样做。
作为对下面 AI G 的回答的回应进行编辑。
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.
卢克
将忽略模式添加到存储库的头部。每个开发人员在查看回购协议时都会得到它。在 v1.8 中你可以;
svn propset svn:global-ignores *.ext
有没有办法为整个存储库设置忽略模式,或者将忽略文件与代码本身一起签入?
否则,所有当前和未来的开发人员都必须通过电子邮件同步他们的忽略模式,而且总有人不这样做。
作为对下面 AI G 的回答的回应进行编辑。
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.
卢克
将忽略模式添加到存储库的头部。每个开发人员在查看回购协议时都会得到它。在 v1.8 中你可以;
svn propset svn:global-ignores *.ext