Check if a reference is a local branch.
A git reference
1 when the reference lives in the refs/heads namespace; 0 otherwise.