mid-bisect
operation
20-commit history with `git bisect` started, HEAD at midpoint
Description
A repository with 20 commits on `main` and an active `git bisect`
run. HEAD is detached at the midpoint candidate; no `good` / `bad`
decisions have been recorded yet. The bisect log carries only the
start markers (`git bisect start <bad> <good>`).
Useful for testing:
- bisect view active-state rendering
- decision keystrokes (`g`/`b`/`s`/`x`) and their immediate effect
- completion-panel detection (apply `g` / `b` repeatedly until
git emits "X is the first bad commit")
- title-bar BISECTING badge Contracts
- main has 20 commits
- a bisect is in progress
- HEAD is detached
- no bisect decisions logged yet
Tags
Branches
(no branch, bisect started on main)main Use it
import { spinUpScenario } from '@gfargo/git-scenarios'
const repo = await spinUpScenario('mid-bisect') npx git-scenarios create mid-bisect import { describeWithScenario } from '@gfargo/git-scenarios/jest'
describeWithScenario('mid-bisect', (getRepo) => {
it('should have the expected state', async () => {
const repo = getRepo()
// your assertions here
})
}) Commit graph
* 15b968b (main) feat: step 19
* 776dd30 feat: step 18
* a99fde7 feat: step 17
* 8bd95f6 feat: step 16
* 0355588 feat: step 15
* 9158a8d feat: step 14
* 4f6883e feat: step 13
* a47e02b feat: step 12
* 254b819 feat: step 11
* 5bc0d05 feat: step 10
* 7f298e0 (HEAD) feat: step 9
* b3adf88 feat: step 8
* feb4808 feat: step 7
* 6bdf65e feat: step 6
* 533991d feat: step 5
* 7f97f0c feat: step 4
* e368ff3 feat: step 3
* de6b63b feat: step 2
* 92f90a2 feat: step 1
* 06a10b7 chore: initial scaffold