Skip to main content

Module branch

Module branch 

Source
Expand description

Mirrored proposal branch maintenance in a disposable worktree.

Structsยง

BranchSync ๐Ÿ”’
Where and how to maintain the proposal branch.
Committer ๐Ÿ”’
Commits to the proposal worktree.
SyncResult ๐Ÿ”’
Result of synchronizing a proposal branch.

Enumsยง

Expectation ๐Ÿ”’
What the pull request says about the proposal branch.
SyncMode ๐Ÿ”’
Controls how a maintained proposal branch may be refreshed.

Functionsยง

sync ๐Ÿ”’
Recreate the proposal on the authority tip: let apply edit a worktree of the tip and commit through the Committer, then force-push with a lease on the branch head observed before the update.
update ๐Ÿ”’
Apply the edit on the tip, commit, and push unless the branch already holds an equivalent proposal. In automatic mode, any branch the marker does not vouch for is refused.