Skip to content
Discussion options

You must be logged in to vote

Confirmed—your analysis of the empty HEAD-to-worktree patch and the resulting orphaned stash is correct. I opened #1283 with the aggregate git diff --quiet HEAD -- <paths> preflight you suggested, so hk returns before invoking the destructive path-limited stash when there is no patch to apply.

The PR includes end-to-end regressions for both git update-index --chmod and a staged content change whose worktree was restored to HEAD, under both libgit2 settings. Thanks for the exceptionally thorough report and recovery notes.

AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable.

Replies: 1 comment

Comment options

jdx
Aug 28, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
0 replies
Answer selected by marcodeltongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants