jj-run
Run a command across a set of revisions, amending each with the resulting changes. tldr-pages
On several platforms
Several platforms
Run a command across a set of revisions, amending each with the resulting changes. Each revision is checked out into an isolated working copy before the command runs.
Run a command on the current revision
jj run -- commandIdentifyRun a command across a revset
jj run --revision revset -- commandIdentifyRun a formatter across all commits in a stack
jj run --revision 'trunk()..@' -- cargo fmtIdentifyPrint the change ID of each revision in a revset ($JJ_CHANGE_ID is set by jj run for each revision)
jj run --revision revset -- sh -c 'echo $JJ_CHANGE_ID'IdentifyRun a command in parallel across multiple revisions
jj run --revision revset --jobs num_jobs -- commandIdentifySimulate running a command without rewriting any commits
jj run --ignore-changes --revision revset -- commandIdentifyRun a command while keeping descendants' content unchanged
jj run --restore-descendants --revision revset -- commandIdentifyRun a command from the workspace root instead of each revision's root
jj run --revision revset --root -- commandIdentify