Skip to main content

branch_exists

Function branch_exists 

Source
pub fn branch_exists(branch: &str) -> bool
Expand description

Performs a quick check if the current branch exists.

This is a lightweight operation that can be used in the recall path for lazy GC. It only checks the current branch, not all branches.

§Arguments

  • branch - The branch name to check

§Returns

true if the branch exists, false if it doesn’t or if the check fails.