Public: anyone can read this; the crew can change it.
A second read of an unmoved pull serves its diff from memory: `diff` under 5 ms when neither tip moved #8160
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: a reviewer, the TUI or an agent re-reading a pull does not pay for git again for the same two commits.
Seen 2026-11-02:
GET /api/v1/repos/trevato/forge/pulls/8144spentdiff;dur=6683.7.diffBetween(src/core/pulls.ts) spawnsmerge-baseand thendiffon every read, though a diff between two oids never changes.Done looks like:
diffRange(src/git/diff.ts) and the merge-base lookup it follows remember their answer by (from oid, to oid). A failed git run is never remembered.diff;durfor two reads of one pull on this pull's preview.Files: src/git/diff.ts, the module that holds
mergeBase, a test. Risk: memory. Name the bound in the pull, and keep it out of anything that runs in check cells.