pub struct FanoutWorktree<'a> { /* private fields */ }Expand description
An open fan-out scratch worktree. Hold txns through worktree_repo();
finalize via commit_fanout (merge back) or abandon_fanout (discard).
Implementations§
Source§impl<'a> FanoutWorktree<'a>
impl<'a> FanoutWorktree<'a>
Sourcepub fn worktree_repo(&self) -> &VaultRepo
pub fn worktree_repo(&self) -> &VaultRepo
The substrate handle for changesets inside the fan-out.
Sourcepub fn wip_branch(&self) -> &str
pub fn wip_branch(&self) -> &str
The wip branch the fan-out commits to (wip/<id>).
Sourcepub fn parent_tip(&self) -> Oid
pub fn parent_tip(&self) -> Oid
Main’s tip when the fan-out began.
Sourcepub fn info(&self) -> &FanoutInfo
pub fn info(&self) -> &FanoutInfo
The full info handle (stateless; usable by merge_fanout_back /
abandon_fanout_by_info when this FanoutWorktree’s borrow ends).
Sourcepub fn commit_fanout(self, strategy: MergeStrategy) -> Result<MergeBackResult>
pub fn commit_fanout(self, strategy: MergeStrategy) -> Result<MergeBackResult>
Merge the fan-out back into main and clean up the scratch worktree.
On any error the fan-out artifacts may be left behind; call
abandon_fanout to clean up explicitly.
Sourcepub fn commit_fanout_with_message(
self,
strategy: MergeStrategy,
message: Option<&str>,
) -> Result<MergeBackResult>
pub fn commit_fanout_with_message( self, strategy: MergeStrategy, message: Option<&str>, ) -> Result<MergeBackResult>
turbovault-b1q: like Self::commit_fanout but with a caller-supplied
merge-commit subject (used by the MCP commit_transaction tool’s
commit_message). None falls back to the auto-derived message.
Sourcepub fn abandon_fanout(self) -> Result<()>
pub fn abandon_fanout(self) -> Result<()>
Discard the fan-out: nothing lands on main; scratch worktree + wip branch removed.