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."

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.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs