--- syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- # jj bisect > Find a bad revision by bisection. > More information: . - 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}}`