Can you “ignore” a file in Perforce?

后端 未结 10 541
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 19:35

I sometimes use the feature \'Reconcile Offline Work...\' found in Perforce\'s P4V IDE to sync up any files that I have been working on while disconnected from the P4 depot.

10条回答
  •  广开言路
    2020-11-29 19:45

    HISTORICAL ANSWER - no longer correct. At the time this was written originally it was true;

    You can not write and check in a file that the server will use to make ignore rules; general glob or regexp file pattern ignore in perforce.

    Other answers have global server configurations that are global (and not per folder). The other answers show things that might work for you, if you want one line in your view per folder times number of extensions you want to ignore in that single folder, or that provide this capability in WebSphere Studio plugins only, or provide capability for server administrators, but not available to users.

    In short, I find Perforce really weak in this area. While I appreciate that those who use the Eclipse Plugin can use .p4ignore, and I think that's great, it leaves those of us that don't, out in the dark.

    UPDATE: See accepted answer for new P4IGNORE capability added mid-2012.

提交回复
热议问题