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

Function discover_excluded_contains

tests/test_discover.c:1292–1299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290/* ── .cbmignore negation vs built-in skip dirs (issue #500) ────── */
1291
1292static bool discover_excluded_contains(char **excluded, int count, const char *rel_path) {
1293 for (int i = 0; i < count; i++) {
1294 if (strcmp(excluded[i], rel_path) == 0) {
1295 return true;
1296 }
1297 }
1298 return false;
1299}
1300
1301/* A "!obj/" negation in .cbmignore must un-skip the built-in ALWAYS_SKIP
1302 * "obj" dir so files inside it get discovered — and the un-skipped dir must

Callers 1

test_discover.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected