Same question above about using `git_reference_shorthand` or `git_branch_remote_name` (https://github.com/libgit2/libgit2/blob/development/include/git2/branch.h)?