Commit 987f565
committed
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.1 parent 8242cc1 commit 987f565
1 file changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2063 | 2063 | | |
2064 | 2064 | | |
2065 | 2065 | | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
2066 | 2072 | | |
2067 | 2073 | | |
2068 | 2074 | | |
2069 | 2075 | | |
2070 | 2076 | | |
2071 | 2077 | | |
2072 | 2078 | | |
2073 | | - | |
2074 | | - | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
2079 | | - | |
2080 | | - | |
2081 | | - | |
2082 | | - | |
2083 | | - | |
| 2079 | + | |
| 2080 | + | |
2084 | 2081 | | |
2085 | 2082 | | |
2086 | 2083 | | |
| |||
0 commit comments