Skip to main content

ref_matches

Function ref_matches 

Source
pub fn ref_matches(refname: &str, pattern: &str) -> bool
Expand description

Does a ref name (e.g. refs/heads/main) match a backup_refs pattern? **/* match everything; a full ref matches exactly; a bare branch name (main) matches refs/heads/<name>.