jj-operation(1)
π jj-operation β the operation log, but make it make sense
okay bestie, welcome to jj-operation(1) from the jj (Jujutsu) manual β section 1, General Commands Manual, the whole vibe. this is your group chat for everything to do with the operation log β¨
β¨ NAME β¨
jj-operation β commands for working with the operation log π«Ά
π SYNOPSIS π
jj operation [-R|--repository] [--ignore-working-copy]
[--no-integrate-operation] [--ignore-immutable] [--at-operation]
[--debug] [--color] [--quiet] [--no-pager] [--config] [--config-file]
[-h|--help] <subcommands>
π DESCRIPTION π
commands for working with the operation log, periodt π
if you wanna go deeper, the [operation log documentation] is literally right there:
[operation log documentation]: https://docs.jj-vcs.dev/latest/operation-log/
πΈ OPTIONS πΈ
-h,--helpβ print help, but the summary version because of the'-h'okay. (yes she's giving you the short version on purpose, iykyk)
π GLOBAL OPTIONS π
these ones are the main character options that work everywhere, no cap π
-R,--repository <REPOSITORY>β path to the repository you wanna operate on ποΈ
by default, Jujutsu goes hunting for the closest .jj/ directory in an ancestor of wherever you're currently working. it's giving detective energy π
--ignore-working-copyβ don't snapshot the working copy, and don't update it either π
by default, Jujutsu snapshots the working copy at the beginning of every command. the working copy also gets updated at the end of the command, but only if the command modified the working-copy commit (@). so if you wanna skip the snapshotting and instead peek at a possibly stale working-copy commit, --ignore-working-copy is your girl. super useful, like, in a command prompt, especially if you've got another process out there committing the working copy. multitasking queens only π
also, loading the repository at a specific operation with --at-operation implies --ignore-working-copy. they come as a set, bestie π«Ά
--no-integrate-operationβ run the command as usual, but don't integrate any operations π«
when you give this option, the operations still get created like normal, but they do not get integrated into the operation log. the working copy also won't be updated. it's giving ghosted-but-not-really π»
the command will print the resulting operation ID. you can pass that to e.g. jj --at-op to inspect the resulting repo state, or you can pass it to jj op restore to restore the repo to that state. you can also pass the ID to jj op integrate to integrate the operation. it's a whole re-gifting economy, we love to see it π
heads up bestie: this does not prevent side effects outside the repo. for example, jj git push --no-integrate-operation will still perform the push. the push is happening, periodt. π
--ignore-immutableβ allow 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. okay rebel π
this option only affects the check. it does not affect the immutable_heads() revset or the immutable template keyword. just the check, babe, nothing else moves. β¨
--at-operation <AT_OPERATION>β operation to load the repo at βͺ
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 there are any. no drama unless you ask for it π
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. it's giving "no merging, no exceptions" π«
use jj op log to find the operation ID you want. any unambiguous prefix of the operation ID is enough. you don't need the whole thing, queen, a vibe is enough π
when loading the repo at an earlier operation, the working copy will be ignored, as if --ignore-working-copy had been specified. lowkey implied, not even mad about it π«Ά
it is possible to run mutating commands when 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. we're not judging, we're just saying the power is there π₯
--debugβ enable debug logging π (for when you really wanna see the receipts)--color <WHEN>β when to colorize output π
possible values:
alwaysneverdebugauto
--quietβ silence non-primary command output π€«
for example, jj file list will still list files, but it won't tell you if the working copy was snapshotted or if descendants were rebased. like, the important stuff still shows up, but the side commentary is muted. main character energy only π
warnings and errors will still be printed. can't silence the truth bestie π
--no-pagerβ disable the pager π«π (for when you want your output to just... come out)--config <NAME=VALUE>β additional configuration options (can be repeated) βοΈ
the name should be specified as TOML dotted keys. 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. so forgiving, so flexible, we love her πΈ
--config-file <PATH>β additional configuration files (can be repeated) π (yes you can stack them, go off)
π¦ SUBCOMMANDS π¦
the whole girl squad, one by one π
jj-operation-abandon(1)β abandon operation history ποΈ (letting it go, as one does)jj-operation-diff(1)β compare changes to the repository between two operations π (spot the difference, bestie)jj-operation-integrate(1)β make an operation part of the operation log π« (bringing her into the fold)jj-operation-log(1)β show the operation log π (the receipts, the whole timeline, iconic)jj-operation-restore(1)β create a new operation that restores the repo to an earlier state βͺβ¨ (time travel but make it legal)jj-operation-revert(1)β create a new operation that reverts an earlier operation β©οΈ (undo energy, very necessary)jj-operation-show(1)β show changes to the repository in an operation π (just one operation under the spotlight)
and that's the whole page!! mwah π this one lives in the General Commands Manual, source operation, filed under jj-operation(1) β go forth, check your op log, and stay slay πβ¨π no cap, you've got this bestie π«Άπ
π¦ where this page comes from
- alpine 3.24: jujutsu-doc 0.42.0-r0 Β· Apache-2.0
- arch rolling: jujutsu 0.46.0-1 Β· Apache-2.0
- nixos 26.05: jujutsu 0.41.0
- nixpkgs unstable: jujutsu 0.46.0
- ubuntu stonking: jujutsu 0.44.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms