pijul diff

Show changes since the last recorded version


pijul diff [-h | --help] [-V | --version] [ --myers ] [ --patience ] [--repository <repository>] [--branch <branch>] [prefix…]


Print the difference between the pristine and the working copy, or in other words, what would be recorded if record were called now.

This command can compare another branch than the current one using the --branch argument, and can compare the directory or file in <prefix> instead of the whole directory.


Show all the changes in the "src" and "tests" directories.

pijul diff src tests


  • -h, --help

    Print a help message and exit.

  • --myers

    Use Myers' diff algorithm. This is the default behaviour, and this flag exists for consistency only.

  • --patience

    Use Patience diff, with Myers diff between common unique lines.

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

    Compare branch <branch> instead of the current branch (the default).

  • [prefix…]

    A (possibly empty) list of paths in the repository to compare with the pristine. If empty, the whole repository is compared.