pub fn is_valid_branch_name(branch_name: &str, repo: Option<&Path>) -> bool
Check if a branch name is valid according to git rules.