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

Function base_ref_store_init

refs.c:2466–2472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2464}
2465
2466void base_ref_store_init(struct ref_store *refs, struct repository *repo,
2467 const char *path, const struct ref_storage_be *be)
2468{
2469 refs->be = be;
2470 refs->repo = repo;
2471 refs->gitdir = xstrdup(path);
2472}
2473
2474int refs_optimize(struct ref_store *refs, struct refs_optimize_opts *opts)
2475{

Callers 4

packed_ref_store_initFunction · 0.85
reftable_be_initFunction · 0.85
files_ref_store_initFunction · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by

no test coverage detected