fn matches_branch(rule_name: &str, branch: &str) -> bool
Mirrors Match in Forgejo models/git/protected_branch.go: plain names compare case-insensitively, globs case-sensitively.
Match
models/git/protected_branch.go