mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 19:44:33 +00:00
26 lines
838 B
Plaintext
26 lines
838 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|