Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# p4 filelog (graph)

List the commit history of the specified file.

## Syntax

    p4 filelog [-d -m max --first-parent] file

Syntax and naming conventions

## Description

List the commit history of the specified file, from the most recent commit to the initial commit.

By default, this command is optimized to NOT display history of a file that is deleted in the most recent commit, or has been removed previously.

The `--first-parent` option follows only the first parent of each commit.

## Options

Option | Description
--- | ---
`-d` | Show the full history of a deleted file. This option cannot be used with paths containing wildcards.
`-m max` | List only the first `max` changes per file output.
``--first-parent`` | Follows only the first parent of each commit.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
Yes | No | list protection, read permission

Your search for returned results