pub fn parse_git_ref(ref_name: &str) -> Option<ParsedGitRef<'_>>Expand description
Parse a fully-qualified Git ref name into its GitRefKind, short name,
and owning remote. Returns None for refs outside the
branch/remote-branch/tag/notes namespaces (e.g. HEAD).
Ported from jj’s parse_git_ref (lib/src/git.rs) and extended for
Heddle’s notes content namespace; the symbolic HEAD and
refs/remotes/<remote>/HEAD entries are not treated as refs.