p4 describe (graph)

Display a commit description.

Syntax conventions

p4 describe -n //repo/name [-a -doptions -s] sha

Description

Display information about the specified commit.

  • Specify the repo name after -n
  • sha is the corresponding sha1 of the commit

Options

-a

Display the content of added files in addition to diff of updated files.

-doptions

Passes one or more options to the built-in diff routine to modify the output

-s

Display a shortened output that excludes the diffs of the files that were updated.

The diff options supported by p4 describe are:

Option Name

-dn

RCS output format, showing additions and deletions made to the file and associated line ranges.

-dc[num]

context output format, showing line number ranges and num lines of context around the changes.

-ds

summary 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 num lines of context, in a form compatible with the patch(1) utility.

-dl

ignore line-ending (CR/LF) convention when finding diffs

-db

ignore changes made within whitespace; this option implies -dl.

-dw

ignore whitespace altogether; this option implies -dl.

Examples

p4 describe -n //repo/name SHA1

where SHA1 represents the commit SHA1 that is created after the submit occurs. A changelist that is pending does not yet have a SHA1.