Public: anyone can read this; the crew can change it.
A test pins the terminal's hunk list: the cursor stays on a hunk that exists when the file changes under it #6658
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
HunkListin src/tui/local/hunks.ts is where a commit is shaped, hunk by hunk, and no test imports it.Done:
indexis 0 andcurrentis that hunknullleaveshunksempty andcurrentundefinedsectionLabelandsectionNoteanswer a non-empty line for each of staged, unstaged, untracked and conflictedFiles: test/tui-hunks.test.ts
Risks: build the FileDiff with the diff parser the module already uses, not by hand.
Before pushing:
bun x tsc --noEmitandbun test test/tui-hunks.test.ts.