class documentation
Manages the state of a bisect session.
| Method | __init__ |
Initialize BisectState. |
| Method | get |
Get the bisect log. |
| Method | mark |
Mark a commit as bad. |
| Method | mark |
Mark a commit as good. |
| Method | replay |
Replay a bisect log. |
| Method | reset |
Reset bisect state and return to original branch/commit. |
| Method | skip |
Skip one or more commits. |
| Method | start |
Start a new bisect session. |
| Instance Variable | repo |
Undocumented |
| Property | is |
Check if a bisect session is active. |
| Method | _append |
Append a line to the bisect log. |
| Method | _estimate |
Estimate the number of steps remaining in bisect. |
| Method | _find |
Find all commits between good and bad commits. |
| Method | _find |
Find the next commit to test using binary search. |
| Method | _get |
Get the subject line of a commit message. |
| Instance Variable | _bisect |
Undocumented |
def start(self, bad:
ObjectID | None = None, good: Sequence[ ObjectID] | None = None, paths: Sequence[ bytes] | None = None, no_checkout: bool = False, term_bad: str = 'bad', term_good: str = 'good'):
¶
Start a new bisect session.
| Parameters | |
bad:ObjectID | None | The bad commit SHA (defaults to HEAD) |
good:Sequence[ | List of good commit SHAs |
paths:Sequence[ | Optional paths to limit bisect to |
nobool | If True, don't checkout commits during bisect |
termstr | Term to use for bad commits (default: "bad") |
termstr | Term to use for good commits (default: "good") |