Skip to content

Aviod blowing away changes on sync - #26

Merged
scode merged 1 commit into
mainfrom
sync-submit-policy
Feb 22, 2026
Merged

scode merged 1 commit into
mainfrom
sync-submit-policy

Conversation

@scode

@scode scode commented Feb 22, 2026 •

Copy link
Copy Markdown
Owner

Because gt sync --all -f will overwrite the local branch ref, the behavior causes the agent to blow away the current work when there's an amended commit locally that just needs gt submit.

Try to steer it to only run it when needed, and only when the actual problem is that upstream downstack branches were merged.

Let's see how this fares in practice.

(I was unable to find a simple straight-forward flow that does the obvious thing in my preferred stacked branch workflow.)

scode commented Feb 22, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@scode scode changed the title Fix sync preflight policy Aviod blowing away changes on sync Feb 22, 2026
@scode
scode merged commit 55301e3 into main Feb 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant