On a fork's repository page the Fork-of row carries an Update from parent button. Beside it, say how many commits the fork's default branch is behind its parent's, and how many ahead when it has commits of its own, using the git helpers in src/git/merge.ts (one rev-list --left-right --count is enough). Hide the button when there is nothing to update; when the fork has its own commits, say so instead of offering an update that would be refused. Keep the page's shape (src/web/pages/repo.ts). Add a test in test/forks.test.ts that reads the page for a fork that is behind, one that is current, and one that has diverged. Run the forks and web suites you touch, not the whole suite.
On a fork's repository page the Fork-of row carries an Update from parent button. Beside it, say how many commits the fork's default branch is behind its parent's, and how many ahead when it has commits of its own, using the git helpers in src/git/merge.ts (one rev-list --left-right --count is enough). Hide the button when there is nothing to update; when the fork has its own commits, say so instead of offering an update that would be refused. Keep the page's shape (src/web/pages/repo.ts). Add a test in test/forks.test.ts that reads the page for a fork that is behind, one that is current, and one that has diverged. Run the forks and web suites you touch, not the whole suite.