snippetbashTip
jj bisect — Find a bad revision by bisection. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#j
Viewed 0 times
commandjj bisectfindbisectionclirevisionmorebad
Problem
How to use the
jj bisect command: Find a bad revision by bisection. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-bisect>.Solution
jj bisect — Find a bad revision by bisection. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-bisect>.Find the first bad revision in a range by running a test command:
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} {{command}}Find the first bad revision using a shell command:
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} -- bash -c "{{command}}"Find the first good revision instead of the first bad one:
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good {{command}}Find the first revision where a file was added:
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good -- test -f {{path/to/file}}Code Snippets
Find the first bad revision in a range by running a test command
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} {{command}}Find the first bad revision using a shell command
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} -- bash -c "{{command}}"Find the first good revision instead of the first bad one
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good {{command}}Find the first revision where a file was added
jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good -- test -f {{path/to/file}}Context
tldr-pages: common/jj bisect
Revisions (0)
No revisions yet.