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

Function gf_metadata_equal

src/mcp/test_impact_git.c:173–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173static bool gf_metadata_equal(cbm_git_facts_t *facts, const char *a, const char *b, bool *equal,
174 cbm_git_facts_error_t *error) {
175 if (!facts->batch_budget) {
176 *equal = strcmp(a, b) == 0;
177 return true;
178 }
179 size_t at = 0;
180 for (;;) {
181 if ((at & 65535u) == 0 && !gf_gate(facts, error))
182 return false;
183 unsigned char x = (unsigned char)a[at], y = (unsigned char)b[at];
184 if (x != y || !x) {
185 *equal = x == y;
186 return true;
187 }
188 at++;
189 }
190}
191
192/* These are compile-time project constants containing simple space-separated
193 * argv tokens, not user command text. No shell quoting or expansion is used. */

Callers 2

gf_topology_guardFunction · 0.85
gf_history_guardFunction · 0.85

Calls 1

gf_gateFunction · 0.85

Tested by

no test coverage detected