p4 diff (graph)
Diff utility for comparing workspace content to repo content. (For comparing two repo paths, see p4 diff2 (graph).)
Syntax
p4 diff [-doptions -soptions file ...]
Description
On the client machine, diff a client file against the corresponding revision in the repo. The file is compared only if the file is opened for edit. If the file specification is omitted, all open files are diffed.
Options
|
|
Pass options to the underlying diff routine. |
-
The
-dsupported byoptionsp4 diffare:Option Name -dbignore changes made within whitespace; this option implies
-dl.-dc[num]context output format, showing line number ranges and
numlines of context around the changes.-dlignore line-ending (CR/LF) convention when finding diffs.
-dnRCS output format, showing additions and deletions made to the file and associated line ranges.
-dssummary output format, showing only the number of chunks and lines added, deleted, or changed.
-du[num]unified output format, showing added and deleted lines with
numlines of context, in a form compatible with thepatch(1)utility.-dwignore whitespace altogether; this option implies
-dl. -
The
-ssupported byoptionsp4 diffare:Option Name -saShow only the names of opened files that are different from the revision in the depot, or are missing.
-sdShow only the names of unopened files that are missing from the client workspace, but present in the depot.
-seShow only the names of unopened files in the client workspace that are different than the revision in the depot.
-slEvery unopened
fileis compared with the depot, and listed with a status ofsame,diff, ormissing.-srShow only the names of opened files in the client workspace that are identical to the revision in the depot.






