jj-operation-log(1)
β¨ jj-operation-log(1) β¨ (the operation log, bestie)
okay so this is the manpage for jj operation log, from the General Commands Manual β yes it's that Jujutsu, the VCS that ate and left no crumbs π
. Buckle up, we're reading the receipts of your whole repo's history π
πΈ NAME πΈ
jj-operation-log β Show the operation log π«Ά
π¦ SYNOPSIS π¦
jj operation log [-n|--limit] [-R|--repository] [--ignore-working-copy]
[--reversed] [-G|--no-graph] [--no-integrate-operation]
[--ignore-immutable] [-T|--template] [--at-operation] [-d|--op-diff]
[--debug] [-p|--patch] [--color] [-s|--summary] [--quiet] [--stat]
[--no-pager] [--types] [--config] [--name-only] [--config-file] [--git]
[--color-words] [--tool] [--context] [--ignore-all-space]
[--ignore-space-change] [--show-changes-in] [-h|--help]
π DESCRIPTION π
Show the operation log. That's it, that's the vibe β¨
But lowkey there's a whole thing happening behind the scenes: like every other command, jj op log snapshots the current working-copy changes and reconciles divergent operations before it does anything. Main character energy, honestly.
Want to peek at the current state without mutating anything? Use --at-op=@ --ignore-working-copy. No cap, that's the move π
π OPTIONS π
-n,--limit <LIMIT>β Caps how many operations you see. Applied after operations are reordered topologically, but before being reversed. Order of operations matters, iykyk π§--reversedβ Flips it: older operations first. Chronological girlies rise π-G,--no-graphβ Drops the graph and gives you a flat list of operations instead. Simple. Clean. Slay π-T,--template <TEMPLATE>β Renders each operation using the template you hand it. All 0-argument methods of the [Operationtype][Operation] are available as keywords in the template expression. Peepjj help -k templatesfor the full lore. If you don't specify anything, it defaults to thetemplates.op_logsetting π-d,--op-diffβ Shows the changes to the repository at each operation. The receipts, fr fr π₯-p,--patchβ Shows a patch of modifications to changes (and yes, it implies--op-diff). Heads up: if the previous version has different parents, it gets temporarily rebased to the parents of the new version, so the diff isn't contaminated by unrelated changes. Considerate king behavior π-h,--helpβ Prints help (see a summary with-h). Classic π«Ά
π DIFF FORMATTING OPTIONS π
-s,--summaryβ For each path, shows only whether it was modified, added, or deleted. The β¨tl;drβ¨ of diffs.--statβ Shows a histogram of the changes. Numbers! Beautiful! Ate π―--typesβ For each path, shows only its type before and after. The diff appears as two letters: the first letter is the type before, the second is the type after.-means the path wasn't present,Fis a regular file,Lis a symlink,Cis a conflict, andGis a Git submodule. Little alphabet soup, but make it informative π§--name-onlyβ For each path, shows only its path. Typically useful for shell commands like:jj diff -r @- --name-only | xargs perl -pi -e's/OLD/NEW/g'β copy that exactly, bestie, character for character π--gitβ Shows a Git-format diff π¦--color-wordsβ Shows a word-level diff where changes are indicated only by color. Very demure, very mindful πΈ--tool <TOOL>β Generates the diff by an external command. You can also name a builtin format as:<name>β for example,--tool=:gitis equivalent to--gitβ¨--context <CONTEXT>β Number of lines of context to show π--ignore-all-spaceβ Ignores whitespace when comparing lines π--ignore-space-changeβ Ignores changes in the amount of whitespace when comparing lines. Subtle but iconic π--show-changes-in <REVSETS>β Shows only changed revisions matching the given revset expression. If no revisions are specified, this defaults to therevsets.op-diff-changes-insetting π
π GLOBAL OPTIONS π
-R,--repository <REPOSITORY>β Path to the repository to operate on. By default, Jujutsu searches for the closest.jj/directory in an ancestor of the current working directory π--ignore-working-copyβ Don't snapshot the working copy, and don't update it. By default, Jujutsu snapshots the working copy at the beginning of every command, and the working copy is also updated at the end of the command if the command modified the working-copy commit (@). If you want to avoid snapshotting and instead see a possibly stale working-copy commit, this is your flag. It's useful e.g. in a command prompt, especially if you have another process that commits the working copy. Also: loading the repository at a specific operation with--at-operationimplies--ignore-working-copyβ--no-integrate-operationβ Runs the command as usual but doesn't integrate any operations. The operations are still created as usual, they're just not integrated into the operation log β and the working copy won't be updated either. The command will print the resulting operation ID. You can pass that to e.g.jj --at-opto inspect the resulting repo state, or pass it tojj op restoreto restore the repo to that state. You can also pass the ID tojj op integrateto integrate the operation.
Careful bestie π this does not prevent side effects outside the repo. For example, jj git push --no-integrate-operation will still perform the push. Fr fr.
--ignore-immutableβ Allows rewriting immutable commits. By default, Jujutsu prevents rewriting commits in the configured set of immutable commits; this option disables that check and lets you rewrite any commit but the root commit. It only affects the check β it does not affect theimmutable_heads()revset or theimmutabletemplate keyword π ββοΈ--at-operation <AT_OPERATION>β The operation to load the repo at. By default, Jujutsu loads the repo at the most recent operation, or at the merge of the divergent operations if any.
You can use --at-op=<operation ID> to see what the repo looked like at an earlier operation. For example, jj --at-op=<operation ID> st will show you what jj st would have shown you when the given operation had just finished. --at-op=@ is pretty much the same as the default, except that divergent operations will never be merged.
Use jj op log to find the operation ID you want β any unambiguous prefix of the operation ID is enough π
When loading the repo at an earlier operation, the working copy will be ignored, as if --ignore-working-copy had been specified.
It is possible to run mutating commands while loading the repo at an earlier operation. Doing that is equivalent to having run concurrent commands starting at the earlier operation. There's rarely a reason to do that, but it is possible π
--debugβ Enables debug logging π--color <WHEN>β When to colorize output. Possible values:alwaysneverdebugauto
--quietβ Silences non-primary command output. For example,jj file listwill still list files, but it won't tell you if the working copy was snapshotted or if descendants were rebased. Warnings and errors will still be printed β οΈ--no-pagerβ Disables the pager π--config <NAME=VALUE>β Additional configuration options (can be repeated). The name should be specified as TOML dotted keys, and the value should be specified as a TOML expression. If the string value isn't enclosed by any TOML constructs (such as array notation), quotes can be omitted π--config-file <PATH>β Additional configuration files (can be repeated) π
π§ a little footnote moment π§
The [Operation type][Operation] link lives at https://docs.jj-vcs.dev/latest/templates/#operation-type and the templates docs at https://docs.jj-vcs.dev/latest/templates/ β go read them, they're giving study material π
And that's the whole page, bestie π«Ά β this was jj-operation-log(1) from the General Commands Manual, filed under the log section, dated whatever your man page says at the bottom (check your local copy, she's got the timestamp). Go log some operations. Periodt. π
β¨
π¦ where this page comes from
- arch rolling: jujutsu 0.46.0-1 Β· Apache-2.0
- nixpkgs unstable: jujutsu 0.46.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms