Skip to main content

refuse_branch_name

Function refuse_branch_name 

Source
pub fn refuse_branch_name(branch: &str, trunk: &str) -> Option<String>
Expand description

Why a branch name cannot be integrated, or None where it can.

The trunk is refused before the grammar, because the trunk is the destination and naming it is a different mistake from naming something off the grammar. The grammar is the one owner in crate::projection::BRANCH_GRAMMAR, through crate::worktree::matches_grammar, so the desk, the landed hook, and this verb judge one language.