如何从 Perforce 中排除所有 .DS_Store 文件? [英] How do I exclude all .DS_Store files from Perforce?

查看:39
本文介绍了如何从 Perforce 中排除所有 .DS_Store 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Perforce 中的图形界面为 .DS_Store 文件设置排除项:

I use the graphic interface in Perforce to set up an exclusion for .DS_Store files:

它在工作区中做到这一点:

It makes this in the workspace:

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

但是当我执行 Reconcile Offline Work 时,它仍然会出现 .DS_Store 文件.我做错了什么?

But when I do Reconcile Offline Work, it still comes up with .DS_Store files. What am I doing wrong?

推荐答案

'*' 通配符只匹配不包括目录分隔符的单个字符串,因此匹配文件夹树中任何级别的名为 .DS_Store 的文件改用..."通配符,如下所示:

The '*' wildcard only matches a single string of characters NOT including the directory separator, so to match a file named .DS_Store at any level in your folder tree use the '...' wildcard instead, as in:

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

或者,可能更简单,考虑使用 P4IGNORE 文件:http://www.perforce.com/perforce/doc.current/manuals/cmdref/P4IGNORE.html

Alteratively, and possibly easier, consider using a P4IGNORE file: http://www.perforce.com/perforce/doc.current/manuals/cmdref/P4IGNORE.html

这篇关于如何从 Perforce 中排除所有 .DS_Store 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆