Perforce 99.2 Command Reference (99.2.cr.3) | ||
<< Previous Chapter p4 describe |
Table of Contents Index Perforce on the Web |
Next Chapter >> p4 diff2 |
This command takes a file argument, which can contain a revision specifier. If a revision specifier is included, the client will be diffed against the specified revision. If a revision specifier is not included, the client workspace file will be compared against the revision currently being edited (usually the head revision). In either case, the client file must be open for edit, or the comparison must be against a revision other than the one to which the client file was last synced.
If the file argument includes wildcards, all open files that match the file pattern will be diffed. If no file argument is provided, all open files will be diffed against their depot counterparts.
By default, the diff routine used is the one provided with the Perforce client. You can change this diff routine to any other diff program by setting the P4DIFF environment or registry variable.
-f |
Force the diff, even when the client file is not open for edit. |
-dflag |
Pass flag flag to the underlying diff routine (see the Examples below for details) |
-sa |
Diff only open files that are different from the revision in the depot, or are missing. |
-sd |
Diff only unopened files that are missing on the client. |
-se |
Diff only unopened files that are different than the revision in the depot. |
-sr |
Diff only opened files that are identical to the revision in the depot. |
-t |
Diff the revisions even if the files are not of type text. |
See the Global Options section. |
Perforce 99.2 Command Reference (99.2.cr.3) | ||
<< Previous Chapter p4 describe |
Table of Contents Index Perforce on the Web |
Next Chapter >> p4 diff2 |