How far a fork is from its upstream, in one sentence
A fork's page says under its head how far it is from its parent and what its follow mode will do about it, for example "3 changes behind a/b; following will apply 3 changes." or "Up to date with a/b; following has nothing to apply."
driftWords(src/actions/follow_words.ts) builds the sentence from the ahead and behind counts and the mode;followWords(src/actions/follow.ts) reads the cached drift, never a new git walk.- The page's standing line, the terminal's forks screen (
fin a repository) and thewordsfield of MCPforksandGET /api/v1/repos/:owner/:name/forksall say that one string. A parent the reader cannot read is not named.
The counts line
Where the sentence above is silent (a severed fork) the page and the terminal's forks screen say the counts alone, so the drift is stated once: "4 behind, 2 ahead of
a/b", "Up to date with a/b", or "upstream unreachable" when the parent is gone,
severed, unreadable or cannot be compared (no error banner). upstreamCounts
(src/actions/upstream_counts.ts) reads git's rev-list counts between the two
default branches, cached by the two head ids; the page, the terminal's forks
screen (src/tui/screens/forks.ts) and the upstreamCounts field of MCP repo
say that one string.