gpt4 book ai didi

svn - 我的svn :ignore pattern?怎么了

转载 作者:行者123 更新时间:2023-12-04 13:49:01 25 4
gpt4 key购买 nike

我有模式 svn:ignore datasheets/*/*.pdf它应该忽略当前根文件夹下多个“数据表”目录下任意深度的所有 pdf。

举个例子:说我有一个像这样的目录结构

网站
-web1
-数据表
-在
-忽略.pdf
-是
-NL
-忽略.pdf
-FR
-忽略.pdf
-ignore2.pdf
-许可协议(protocol)
-important.pdf
-web2
-数据表
-ETC

在这个例子中,模式需要忽略所有的 ignore.pdf,而不需要考虑 important.pdf。

显示的模式仍然包括我所有的 pdf 文件。

我知道有很多类似的问题,但似乎没有一个可以解决各种层次结构级别的问题。

最佳答案

来自 the documentation :

[U]nlike 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.



您需要递归地将忽略模式应用于每个目录,您可以使用 --recursive选项。

关于svn - 我的svn :ignore pattern?怎么了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1642921/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com