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

Function ref_storage_format_by_name

refs.c:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51enum ref_storage_format ref_storage_format_by_name(const char *name)
52{
53 for (unsigned int i = 0; i < ARRAY_SIZE(refs_backends); i++)
54 if (refs_backends[i] && !strcmp(refs_backends[i]->name, name))
55 return i;
56 return REF_STORAGE_FORMAT_UNKNOWN;
57}
58
59const char *ref_storage_format_to_name(enum ref_storage_format ref_storage_format)
60{

Callers 12

handle_extensionFunction · 0.85
ref_store_create_on_diskFunction · 0.85
ref_store_remove_on_diskFunction · 0.85
cmd_cloneFunction · 0.85
module_cloneFunction · 0.85
module_updateFunction · 0.85
module_addFunction · 0.85
cmd_refs_migrateFunction · 0.85
cmd_init_dbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected