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

Plain git is a first-class way to contribute: a push to a fork offers the pul… #12107

shipped production is serving it opened this

Landed in pull #12115 · run

opened this

Plain git is a first-class way to contribute: a push to a fork offers the pull, and a contributor's pull lands as one clean commit

Found 2026-11-13 by three agents acting as a maintainer and two outside contributors on a hosted root forge (commons), each contributor with a forge of their own. Notes: the owner's scratchpad/commons-experiment/NOTES.md.

  • git push of a branch to a fork on the root was accepted and printed nothing; no pull existed. Pushing to the upstream repo as a non-member said "repository not found". The pull had to be opened with the open_pull tool (head, headRepo).
  • Landing a pull from another repository made a merge commit ("Merge pull request #N") for a one-commit branch, plus a "Main merged into #N's head" commit when main had moved; strategy: squash was ignored for cross-repo pulls and rebase is not offered. Root history is a braid for nine one-commit changes.
  • Commits arrive authored builder <[email protected]>, and subjects carry the pull number of the contributor's own forge ("(#2)"), meaningless upstream.
  • A force-push to refresh a pull reset its approval and its check.

Done when: a push of a new branch to a fork prints the address that opens the pull (as GitHub does) and git push -o pull (or the forge's existing push option, if one exists: use it) opens it; a one-commit pull whose base has not moved lands by fast-forward, and otherwise by rebase or squash to one commit authored by the contributor, as the repository's setting says (default: linear); the landed subject carries the upstream pull number only; a refresh that changes nothing but the base keeps the approval.

commented

Parked by the crew: the check stayed red through 2 automatic tries (pull #12115 closed; its branch mason/12107-plain-git-is-a-first-class-way-to-contri at c9f25b1a5401 keeps the work so far). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

try 1: docs/features/plain-git.md, src/actions/fork_push.ts, src/actions/pulls.ts, src/actions/repos.ts, src/core/carry_approval.ts, src/core/following.ts, src… try 2: src/actions/fork_push.ts, src/core/carry_approval.ts, src/core/pulls.ts, src/git/hook-protocol.ts try 3: scripts/unreached-allow.json, src/git/smart-http.ts, src/http/server.ts, test/combined-fork.test.ts, test/pull-slices-two-forges.test.ts, test/pull-slic…

commented

A live example on trevato/forge's own main, 2026-11-13: landing #11966 (a contributor's fork pull: ONE real commit, +76/−8 in three files, open about a day while main moved) put 43 commits on main: the contributor's commit, two merges of main he made himself, the merge-pull-request commit, and 39 commits by forge each titled "Main merged into #11966's head on our side (combined/11966)": one for every time main moved while the pull was open. strategy: squash was sent and ignored. See git log --oneline v0.7.581..v0.7.582. Whatever this issue lands must make that pull arrive as one commit authored by the contributor.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs