Perforce Command Reference:   [Index]  [Prev] [Next]


p4 diff2

Synopsis

Display diff of two depot files

Syntax

p4 [g_opts] [ -d<flag> ] file1 file2

Description

Run diff (on the server) of two files in the depot. Both files may optionally include a revision specification; the default is to compare the head revision. Wildcards may be used, but they must match between file1 and file2 and they must be escaped from the user's shell by quoting or with backslashes (\).

The -d<flag> passes a flag to the built-in diff routine to modify the output: -dn (RCS), -dc (context), -du (unified).



Perforce Command Reference:   [Index]  [Prev] [Next]


Copyright 1998 Perforce Software.
Contact us at [email protected]
Last updated: 06/14/98