Each file in Perforce has a type, which includes the type of contents and special flags for handling the file on the server. The content types are usually binary or text (OS X users will notice the apple type being used for binary files with resource forks). The flags control things like compression, header expansion (+k) or which revisions are stored on a server.
To set the default file types, use the Perforce typemap command.
Each default type map consists of file type flags and a depot path.
Binary+S //….docThis prevent Perforce from storing multiple versions of Microsoft Word documents.
//….doc selects all files and sub-folders in the depot with the .doc extension.+S indicates that only the head revision should be stored.Binary+S //Projects/Databases/…/*_test.dbThis is similar to the type setting above, but applies only to testing databases (ending in _test.db) in the Projects/Databases folder (and subfolders).
Note: Make sure to include a [Tab] at the beginning of each line or Perforce will not accept the typemap!