Diff utility for comparing workspace content to repo content. (For comparing two repo paths, see p4 diff2 (graph).)
p4 diff [-doptions -soptions file ...]
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.
|
Pass options to the underlying diff routine. |
The -d
supported by options
p4 diff
are:
Option | Name |
---|---|
|
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 -s
supported by options
p4 diff
are:
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. |