pijul credit

Annotate a file with the patch that last touched each line


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


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.


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

pijul credit pijul/Cargo.toml


  • -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