repository: get worktree HEAD via `git_reference__read_head`
The functions `git_repository_head_for_worktree` and `git_repository_detached_head_for_worktree` both implement their own logic to read the HEAD reference file. Use the new function `git_reference__read_head` instead to unify the code paths.
Showing
Please
register
or
sign in
to comment