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

Function odb_source_init

odb/source.c:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void odb_source_init(struct odb_source *source,
15 struct object_database *odb,
16 enum odb_source_type type,
17 const char *path,
18 bool local)
19{
20 source->odb = odb;
21 source->type = type;
22 source->local = local;
23 source->path = xstrdup(path);
24}
25
26void odb_source_free(struct odb_source *source)
27{

Callers 3

odb_source_inmemory_newFunction · 0.85
odb_source_loose_newFunction · 0.85
odb_source_files_newFunction · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by

no test coverage detected