repository.c
66.3 KB
-
repository: get worktree HEAD via `git_reference__read_head` · 3e84aa50
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.
Patrick Steinhardt committed