pijul blame

Annotate a file with the patch that last touched each line

Usage

pijul blame [-h | --help] [-V | --version] [--repository <repository>] [--branch <branch>] <file>

Description

Prints an annotated version of the file named <file> in the pristine on the standard output, where each line is prefixed by the patch that introduced it (or the last patch that modified it).

This command doesn't take the version of <file> in the working copy, and only considers the pristine.

Example

From the repository root, with a file named Cargo.toml in directory pijul:

pijul blame pijul/Cargo.toml

Options

  • -h, --help

    Print a help message and exit.

  • -V, --version

    Print the version of Pijul and exit.

  • --repository <repository>

    Don't run this command in the current directory, run it in <repository> instead.

  • --branch <branch>

    Annotate the file in branch <branch> instead of the current branch.

  • <file>

    The name of the file to annotate