Commit 987f565917ed92094184384eb61c38d17e9e47f5

Patrick Steinhardt 2017-04-04T17:12:22

repository: extract function to get path to a file in a work tree The function `read_worktree_head` has the logic embedded to construct the path to `HEAD` in the work tree's git directory, which is quite useful for other callers. Extract the logic into its own function to make it reusable by others.