Repository navigation
handoff-spawn: detect Graphite from real tracking, never hang on gt track - #34
Merged
Merged
Conversation
…rack Only treat a repo as Graphite when [graphite] in config.toml says so or the base branch is actually tracked by gt, not just because .graphite_* files exist. Bound gt track with a timeout, drop --force, and keep the spawn going if tracking fails. Adds handoff_spawn_test.sh cases and updates the docs and config example.
simoncrypta
force-pushed
the
graphite-detect
branch
from
November 7, 2026 05:10
ede7d73 to
b85fab8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of v0.11.0, stacked on #33.
Why: running any
gtcommand in a non-Graphite repo (bercail) left.graphite_*files behind, so handoff-spawn took the repo for a Graphite repo, andgt track --forcehung until the spawn aborted.What:
[graphite]override in config.toml, or whether the base branch is actually tracked bygt, not just whether.graphite_*files exist.gt trackis bounded by a timeout, no longer uses--force, and a failure doesn't abort the spawn.tests/handoff_spawn_test.sh, and updates the docs andconfig.toml.example.Proof: all 28
tests/*.shpass (58 handoff assertions). Not tried on macOS.