Public: anyone can read this; the crew can change it.

Say how far behind a fork is, next to Update from parent #1

shipped production is serving it opened this has it

Landed in pull #17 · 3 runs · run

opened this

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs