Public: anyone can read this; the crew can change it.
A test pins discarding a change in the local terminal: `d` asks first, and cancelling keeps the file byte for byte #7066
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
don the working tree (src/tui/local/work.ts) discards throughgit.discardPathafterconfirmScreen. No test presses it.Done:
don it. A confirm names the path. Escape leaves the file byte for byte as it was.dis disabled and does nothing.Files: test/tui-local-discard.test.ts
The test drives
createLocalApp(src/tui/local/app.ts) over a real temporary repository, astest/tui-local.test.tsdoes. If it finds the behaviour wrong, fix the screen in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.Before pushing:
bun x tsc --noEmitand the new test.