Perforce 2002.2 Command Reference | ||
<< Previous Chapter About This Manual |
Table of Contents Index Perforce on the Web |
Next Chapter >> p4 admin |
The added files must be contained in the user's current client view. These files need not exist within the client workspace at the time of p4 add. They must, however, be in the client workspace when p4 submit is run, or submission fails. p4 add does not create the files; they must be created by the user.
The new files must either not already exist in the depot, or can exist in the depot but be deleted at the head revision. Files may be deleted and re-added arbitrarily.
By default, the specified files are linked to the default changelist. Use -c to specify a different changelist.
When adding files, Perforce first examines the typemap table (p4 typemap) to see if the system administrator has defined a file type for the file(s) being added. If a match is found, the file's type is set as defined in the typemap table. If a match is not found, Perforce examines the first 1024 bytes of the file to determine whether it is text or binary, and the files are stored in the depot accordingly. Text file revisions are stored in reverse delta format; binary file revisions are stored as full files.
The -t filetype flag specifies the file type explicitly, overriding any settings in the typemap table and Perforce's default file detection mechanism.
-c changelist |
Opens the files for add within the specified changelist. If this flag is not used, the files are linked to the default changelist. |
-t filetype |
Adds the file as the specified filetype. Please see the File Types chapter for a list of Perforce file types. |
See the Global Options section. |
To open a file for edit | |
To open a file for deletion | |
To copy all open files to the depot | |
To read files from the depot into the client workspace | |
To create or edit a new changelist | |
To list all opened files | |
To revert a file to its unopened state | |
To move an open file to a different pending changelist | |
To change an open file's file type |
p4 reopen -t filetype |
Perforce 2002.2 Command Reference | ||
<< Previous Chapter About This Manual |
Table of Contents Index Perforce on the Web |
Next Chapter >> p4 admin |