Almo
Almo

Reputation: 15871

How do I exclude all .DS_Store files from Perforce?

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

enter image description here

It makes this in the workspace:

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

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

Upvotes: 2

Views: 1167

Answers (1)

Bryan Pendleton
Bryan Pendleton

Reputation: 16389

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

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

Upvotes: 4

Related Questions