Smart stashing #1144
Unanswered
whatisaphone
asked this question in
Troubleshooting and Bug Reports
Smart stashing
#1144
Replies: 1 comment
|
Confirmed: this is a bug, not a documentation mismatch. When I opened PR #1145, which snapshots the isolated post-fixer worktree when staging is disabled, merges it with the saved unstaged edits, and leaves the original index untouched. It includes the exact partially staged single-file regression and passes with both libgit2 and shell Git. AI-assisted — Tool: Codex; model: unavailable/unavailable; version: unavailable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Smart stashing does not seem to work as described in the docs. Here's a repro:
mise.toml:
hk.pkl:
Repro steps:
After running hk, nothing changed in either the worktree or git's index. According to the docs ("3. After hooks run"), I'd expect the changes from prettier to be merged into the worktree, so the
xline is formatted, but thezline remains unformatted. Could this be a bug or did I misunderstand the docs?All reactions