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

Function files_optimize_required

refs/files-backend.c:1526–1534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1524}
1525
1526static int files_optimize_required(struct ref_store *ref_store,
1527 struct refs_optimize_opts *opts,
1528 bool *required)
1529{
1530 struct files_ref_store *refs = files_downcast(ref_store, REF_STORE_READ,
1531 "optimize_required");
1532 *required = should_pack_refs(refs, opts);
1533 return 0;
1534}
1535
1536/*
1537 * People using contrib's git-new-workdir have .git/logs/refs ->

Callers

nothing calls this directly

Calls 2

files_downcastFunction · 0.85
should_pack_refsFunction · 0.85

Tested by

no test coverage detected