MCPcopy Create free account
hub / github.com/git/git / add_root_refs

Function add_root_refs

refs/files-backend.c:421–430  ·  view source on GitHub ↗

* Add root refs to the ref dir by parsing the directory for any files which * follow the root ref syntax. */

Source from the content-addressed store, hash-verified

419 * follow the root ref syntax.
420 */
421static void add_root_refs(struct files_ref_store *refs,
422 struct ref_dir *dir)
423{
424 struct fill_root_ref_data data = {
425 .refs = refs,
426 .dir = dir,
427 };
428
429 for_each_root_ref(refs, fill_root_ref, &data);
430}
431
432static struct ref_cache *get_loose_ref_cache(struct files_ref_store *refs,
433 unsigned int flags)

Callers 1

get_loose_ref_cacheFunction · 0.85

Calls 1

for_each_root_refFunction · 0.85

Tested by

no test coverage detected