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

Function cbm_matches_fast_pattern

src/discover/discover.c:395–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395bool cbm_matches_fast_pattern(const char *filename, cbm_index_mode_t mode) {
396 if (!filename || mode == CBM_MODE_FULL) {
397 return false;
398 }
399
400 for (int i = 0; FAST_PATTERNS[i]; i++) {
401 if (str_contains(filename, FAST_PATTERNS[i])) {
402 return true;
403 }
404 }
405
406 return false;
407}
408
409/* ── Dynamic file list ────────────────────────── */
410

Callers 2

file_skip_reasonFunction · 0.85
test_discover.cFile · 0.85

Calls 1

str_containsFunction · 0.70

Tested by

no test coverage detected