LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jj-operation-log

show Jujutsu's operation log

TLDR

Show the operation log
$ jj operation log
copy
Limit how many operations are listed
$ jj op log --limit [20]
copy
Oldest first
$ jj op log --reversed
copy
Show without the graph
$ jj op log --no-graph
copy
Include the repository diff at each operation
$ jj op log --op-diff
copy
Custom template
$ jj op log --template [template]
copy

SYNOPSIS

jj operation log [options]

DESCRIPTION

jj operation log (alias jj op log) lists the operation log. Jujutsu records every mutating command as an operation, which is what jj undo, jj operation restore, and jj operation revert walk.Like other jj commands, jj op log snapshots the working copy and reconciles divergent operations. To inspect the log without that mutation, use jj --at-op=@ --ignore-working-copy op log.IDs from this log are the arguments to jj operation show, jj operation diff, jj operation restore, and jj --at-operation.

PARAMETERS

-n, --limit N

Maximum number of operations to show (after topological order, before reverse).
--reversed
Show older operations first.
-G, --no-graph
Flat list instead of a graph.
-T, --template TEMPLATE
Render each operation with a template expression.
-d, --op-diff
Show repository changes at each operation.
-p, --patch
Show patches of modified changes (implies --op-diff).
-s, --summary
For each path, show only whether it was modified, added, or deleted.
--stat
Show a histogram of the changes.
--show-changes-in REVSETS
Restrict operation diffs to matching revisions.
--help
Display help information.

INSTALL

sudo pacman -S jujutsu
copy
sudo apk add jujutsu
copy
sudo zypper install jujutsu
copy
brew install jujutsu
copy
nix profile install nixpkgs#jujutsu
copy

CAVEATS

Subcommand of jj. The log is retained according to repo gc settings; old operations can disappear after jj util gc or jj operation abandon. Default output is newest-first. --patch on a long log is expensive.

SEE ALSO

RESOURCES

Copied to clipboard
Kai