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

Function ws_match_visit

src/foundation/workspace.c:390–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388} ws_match_t;
389
390static bool ws_match_visit(const char *root, bool sensitive, void *ctx) {
391 ws_match_t *m = ctx;
392 if (cbm_path_within_root(root, m->candidate)) {
393 m->contained = true;
394 if (sensitive && ws_paths_equal(root, m->candidate)) {
395 m->exact_sensitive = true;
396 }
397 }
398 return false; /* visit every entry: a later one may be the exact match */
399}
400
401typedef struct {
402 char *out;

Callers

nothing calls this directly

Calls 2

cbm_path_within_rootFunction · 0.85
ws_paths_equalFunction · 0.85

Tested by

no test coverage detected