pub fn git_branch_exists(
repo_root: &Path,
branch: &str,
) -> Result<bool, GitError>Expand description
Checks if a branch exists locally in the repository.
ยงExample
use std::path::Path;
use git_claw::infra::git::git_branch_exists;
let exists = git_branch_exists(Path::new("."), "main")?;
assert!(exists);