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 -doptions
supported by p4 diff
options| Option | Description |
|---|---|
|
|
ignore changes made within whitespace; this option implies
|
|
|
context output format, showing line number ranges and
|
|
|
ignore line-ending (CR/LF) convention when finding diffs. |
|
|
RCS output format, showing additions and deletions made to the file and associated line ranges. |
|
|
summary output format, showing only the number of chunks and lines added, deleted, or changed. |
|
|
unified output format, showing added and deleted lines with
|
|
|
ignore whitespace altogether; this option implies
|
The -soptions
supported by p4 diff
options| Option | Name |
|---|---|
|
|
Show only the names of opened files that are different from the revision in the depot, or are missing. |
|
|
Show only the names of unopened files that are missing from the client workspace, but present in the depot. |
|
|
Show only the names of unopened files in the client workspace that are different than the revision in the depot. |
|
|
Every unopened |
|
|
Show only the names of opened files in the client workspace that are identical to the revision in the depot. |