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

Function gf_gate

src/mcp/test_impact_git.c:134–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static bool gf_gate(cbm_git_facts_t *facts, cbm_git_facts_error_t *error) {
135 if (facts->stopped.status != CBM_GIT_FACTS_OK) {
136 *error = facts->stopped;
137 return false;
138 }
139 if (facts->options.cancelled && facts->options.cancelled(facts->options.cancel_context)) {
140 gf_error(error, CBM_GIT_FACTS_CANCELLED, "Git facts request cancelled");
141 facts->stopped = *error;
142 return false;
143 }
144 if (cbm_now_ms() >= facts->options.deadline_ms)
145 return gf_error(error, CBM_GIT_FACTS_DEADLINE, "Git facts deadline expired");
146 return true;
147}
148
149/* A batch charges logical requests before allocating, including allocations
150 * in inherited guards. Legacy calls retain their original allocation policy. */

Callers 15

gf_allocateFunction · 0.85
gf_metadata_equalFunction · 0.85
gf_private_directoryFunction · 0.85
gf_capture_inputFunction · 0.85
gf_read_captureFunction · 0.85
gf_run_inputFunction · 0.85
gf_active_lineFunction · 0.85
gf_owned_lineFunction · 0.85
gf_topology_guardFunction · 0.85
gf_history_guardFunction · 0.85
gf_open_identityFunction · 0.85
gf_inventory_pathFunction · 0.85

Calls 3

gf_errorFunction · 0.85
cbm_now_msFunction · 0.85
cancelledMethod · 0.80

Tested by

no test coverage detected