2015-09-05 23 views
1

我使用Perforce的圖形界面來設置的.DS_Store文件排除:如何從Perforce中排除所有.DS_Store文件?

enter image description here

它使這個工作區:

-//depot/*.DS_Store //almo_SilentMac/*.DS_Store

但是當我做對賬離線工作,它仍然會出現.DS_Store文件。我究竟做錯了什麼?

+0

爲什麼不'.DS_Store'的特定文件名? – thrig

+0

我同意@thrig。 '.DS_Store'不是擴展名,它是一個文件名,所以請使用「特定文件名」條目。 –

+0

與' - // depot/.DS_Store // almo_SilentMac/.DS_Store'相同的行爲 – Almo

回答

3

'*'通配符只匹配不包含目錄分隔符的單個字符串,因此要匹配文件夾樹中任何級別的名爲.DS_Store的文件,請使用'...'通配符,如下所示:

-//depot/.../.DS_Store //almo_SilentMac/.../.DS_Store 

Alteratively,可能更容易,可以考慮使用P4IGNORE文件:http://www.perforce.com/perforce/doc.current/manuals/cmdref/P4IGNORE.html

+0

似乎很奇怪創建這些規則的對話框不會生成這個正確的配置行。 – Almo

相關問題