P4IGNORE

Description

Specify a file that contains a list of files to ignore when adding files to the depot and reconciling workspaces.

Usage Notes

Used by Client?

Used by Server?

Command-Line Alternative

Can be set in P4CONFIG file?

Yes

No

None

Yes

Value if not Explicitly Set

Operating System

Value

All

none

Examples

/users/edk/.p4ignore

Notes

The syntax for the contents of a P4IGNORE file is not the same as Perforce syntax. Instead, it is similar to that used by other versioning systems: files are specified in local syntax, a # character at the beginning of a line denotes a comment, a ! character at the beginning of a line excludes the file specification, and the * wildcard matches substrings. The Perforce wildcard of "..." is not permitted.

For example:

# Ignore .p4ignore files
.p4ignore

# Ignore object files, shared libraries, executables
*.dll
*.so
*.exe
*.o

# Ignore all HTML files except the readme file
*.html
!readme.html