git.resolve_ref

git

resolve_ref(git_dir, ref_path) -> sha

Resolve a ref path (e.g. refs/heads/main) to a SHA, following symbolic refs and packed-refs