Skip to main content

is_doc_scope

Function is_doc_scope 

Source
pub fn is_doc_scope(base_ref: &str) -> bool
Expand description

Whether a scope ref spells a document rather than a branch. The one predicate: the readers that place threads against a diff and the branch sweep all ask this, so a doc scope is skipped in exactly one place. It takes the ref string, not the anchor, because the sweep has only the stored scope in hand.