Skip to main content

default_worktree

Function default_worktree 

Source
pub fn default_worktree(
    stem: Option<&str>,
    ticket_id: &str,
) -> Result<String, String>
Expand description

Chooses the worktree branch for a ticket whose frontmatter does not name one. stem is the ticket file’s stem; exec-sourced tickets have none and always fall back to sloop/<ticket_id>. Err refuses the ticket with the given reason: reindex holds it, sloop post rejects it.