Commit 0f4f1f1
refs: support obtaining ref_store for given dir
The refs subsystem uses the `get_main_ref_store()` to obtain the main
ref_store for a given repository. In the upcoming patches we also want
to create a ref_store for any given reference directory, which may exist
in arbitrary paths. To support such behavior, extract out the core logic
for creating out the ref_store from `get_main_ref_store()` into a new
function `get_ref_store_for_dir()` which can provide the ref_store for a
given (repository, directory, reference format) combination.
Signed-off-by: Karthik Nayak <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 9a2fb14 commit 0f4f1f1
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2177 | 2177 | | |
2178 | 2178 | | |
2179 | 2179 | | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
2180 | 2189 | | |
2181 | 2190 | | |
2182 | 2191 | | |
| |||
2185 | 2194 | | |
2186 | 2195 | | |
2187 | 2196 | | |
2188 | | - | |
2189 | | - | |
2190 | | - | |
| 2197 | + | |
2191 | 2198 | | |
2192 | 2199 | | |
2193 | 2200 | | |
| |||
0 commit comments