MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / gf_batch_execute

Function gf_batch_execute

src/mcp/test_impact_git.c:2034–2051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2032}
2033
2034static bool gf_batch_execute(cbm_git_facts_t *facts, const cbm_git_blob_batch_request_t *request,
2035 const cbm_git_blob_batch_limits_t *limits, cbm_git_blob_batch_t *out,
2036 cbm_git_facts_error_t *error) {
2037 if (!gf_history_guard(facts, error))
2038 return false;
2039 if (request->count > limits->max_entries || request->count > SIZE_MAX / sizeof(size_t) ||
2040 request->count > SIZE_MAX / sizeof(gf_batch_pick_t) ||
2041 request->count > SIZE_MAX / sizeof(cbm_git_blob_batch_item_t))
2042 return gf_limit(facts, error, "Git batch entry limit exceeded");
2043 gf_batch_work_t work = {.facts = facts, .request = request};
2044 if (!gf_batch_inventory(&work, error))
2045 return false;
2046 if (request->count &&
2047 (!gf_batch_selection(&work, error) || !gf_batch_unique(&work, error) ||
2048 !gf_batch_preflight(&work, error) || !gf_batch_read_payloads(&work, error)))
2049 return false;
2050 return gf_batch_publish(&work, out, error);
2051}
2052
2053bool cbm_git_facts_read_blob_batch(cbm_git_facts_t *facts,
2054 const cbm_git_blob_batch_request_t *request,

Callers 1

Calls 8

gf_history_guardFunction · 0.85
gf_limitFunction · 0.85
gf_batch_inventoryFunction · 0.85
gf_batch_selectionFunction · 0.85
gf_batch_uniqueFunction · 0.85
gf_batch_preflightFunction · 0.85
gf_batch_read_payloadsFunction · 0.85
gf_batch_publishFunction · 0.85

Tested by

no test coverage detected