Skip to content

Move the Git checkout marker under .git - #35

Draft
zanieb wants to merge 1 commit into
mainfrom
zb/move-git-checkout-marker
Draft

zanieb wants to merge 1 commit into
mainfrom
zb/move-git-checkout-marker

Conversation

@zanieb

@zanieb zanieb commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

A repository can legitimately track .ok, causing an interrupted checkout to appear ready and the tracked file to be truncated after reset. Keep the readiness marker under .git instead.

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/move-git-checkout-marker branch 2 times, most recently from c72f876 to afa1363 Compare August 25, 2026 20:53
@zaniebot zaniebot added priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect. bug Something isn't working security risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. labels Sep 9, 2026
The checkout readiness sentinel currently shares the worktree namespace with project files. A tracked .ok file can falsely mark an interrupted checkout as ready and is truncated after reset.

Store the sentinel under Git metadata instead, and cover local Git installs with a tracked non-empty .ok file.
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/move-git-checkout-marker branch from afa1363 to 94e6733 Compare September 23, 2026 09:21
@codspeed

codspeed Bot commented Sep 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 41 untouched benchmarks


Comparing zb/move-git-checkout-marker (94e6733) with main (5d74111)

Open in CodSpeed

@zaniebot zaniebot added risk:0 No meaningful change to product, state, release, or automation behavior. priority:4 Low: worthwhile tests, refactors, or maintenance with modest immediate benefit. size:0 Mechanical: little semantic reasoning; correctness is apparent from inspection or compiler checks. and removed risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect. labels Sep 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority:4 Low: worthwhile tests, refactors, or maintenance with modest immediate benefit. risk:0 No meaningful change to product, state, release, or automation behavior. security size:0 Mechanical: little semantic reasoning; correctness is apparent from inspection or compiler checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants