CmdID

CmdID / Commands

jj-run

Run a command across a set of revisions, amending each with the resulting changes. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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 -- commandIdentify

Run a command across a revset

jj run --revision revset -- commandIdentify

Run a formatter across all commits in a stack

jj run --revision 'trunk()..@' -- cargo fmtIdentify

Print 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'Identify

Run a command in parallel across multiple revisions

jj run --revision revset --jobs num_jobs -- commandIdentify

Simulate running a command without rewriting any commits

jj run --ignore-changes --revision revset -- commandIdentify

Run a command while keeping descendants' content unchanged

jj run --restore-descendants --revision revset -- commandIdentify

Run a command from the workspace root instead of each revision's root

jj run --revision revset --root -- commandIdentify