pub(crate) fn sync<G: GitHistory + GitRefs + ProposalGit>(
git: &G,
request: &BranchSync<'_>,
apply: impl FnOnce(&Path, &Committer<'_, G>) -> Result<(), ProposalError>,
) -> Result<SyncResult, ProposalError>Expand description
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.