pub fn current() -> Result<String, BranchError>
Get the current branch name.
Returns an error if the branch cannot be determined.