jj-util-snapshot(1) General Commands Manual jj-util-snapshot(1) (NAME) jj-util-snapshot - (SYNOPSIS) jj util snapshot [-R|--repository] [--ignore-working-copy] [--no-integrate-operation] [--ignore-immutable] [--at-operation] [--debug] [--color] [--quiet] [--no-pager] [--config] [--config-file] [-h|--help] (DESCRIPTION) . . . jj operation log --limit 1 . jj util snapshot . (Example of programmatic snapshotting) : $ echo content > new-file.txt # `jj` `new-file.txt` . $ ./my-script-that-runs-jj-commands # `jj` `new-file.txt` # : $ jj operation log --patch my-script-that-runs-jj-commands <<>> jj util snapshot new-file.txt jj . jj operation log --patch . jj util snapshot . jj util snapshot . (Checking if the operation ID changed) << >> jj operation log --no-graph --limit 1 -T id . jj : start_op_id="$(jj op log -G -n 1 -T id)" jj git fetch || exit fetch_op_id="$(jj op log -G -n 1 -T id)" if [[ "${start_op_id}" == "${fetch_op_id}" ]]; then # . exit 0 fi jj rebase -r 'mutable()' -o 'trunk()' rebase_op_id="$(jj op log -G -n 1 -T id)" if [[ "${fetch_op_id}" == "${rebase_op_id}" ]]; then # . exit 0 fi echo "Fetched and rebased!" jj util snapshot . (OPTIONS) -h, --help ( '-h') (GLOBAL OPTIONS) -R, --repository Jujutsu .jj/ . --ignore-working-copy Jujutsu . (`@`) . --ignore-working-copy . (prompt) . --at-operation --ignore-working-copy . --no-integrate-operation (operation log) . . . jj --at-op jj op restore . jj op integrate . **. jj git push --no-integrate-operation (push) . --ignore-immutable Jujutsu . (root commit) . (revset) immutable_heads() immutable . --at-operation . Jujutsu . --at-op= . jj --at-op= st jj st . --at-op=@ . jj op log . . --ignore-working-copy . (mutating) . . . --debug (debug logging) --color : o always o never o debug o auto --quiet jj file list (rebase) . . --no-pager (pager) --config ( ) TOML . TOML . TOML ( ) . --config-file ( ) (SEE ALSO) jj(1) snapshot jj-util-snapshot(1)