Perforce 2003.2 Command Reference | ||
<< Previous Chapter Views |
Table of Contents Index Perforce on the Web |
Next Chapter >> Index |
When a file is opened for add, Perforce attempts to determine the type of the file automatically. If the file is a regular file or a symbolic link, its type is set accordingly. Perforce then examines the first 1024 bytes of the file to determine whether it is text or binary. If any non-text characters are found, the file is assumed to be binary; otherwise, the file is assumed to be text.
Perforce administrators can use the type mapping feature (p4 typemap) to override Perforce's default file type detection mechanism. This feature is useful for binary file formats (such as Adobe PDF, or Rich Text Format) where files can start with 1024 or more characters of ASCII text, and might otherwise be mistaken for text files.
A file's type is normally preserved between revisions, but can be overridden or changed with the -t flag during add, edit, or reopen operations:
For more about mapping file names to Perforce filetypes, see the p4 typemap command.
Perforce 2003.2 Command Reference | ||
<< Previous Chapter Views |
Table of Contents Index Perforce on the Web |
Next Chapter >> Index |