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

Function walk_cache_dir_snapshot

src/discover/discover.c:574–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572static _Thread_local char g_walk_cache_dir[CBM_SZ_4K];
573
574static void walk_cache_dir_snapshot(void) {
575 const char *cache = cbm_workspace_cache_dir();
576 snprintf(g_walk_cache_dir, sizeof(g_walk_cache_dir), "%s", cache ? cache : "");
577}
578
579/* The cache directory holds every indexed project's graph database. When a custom
580 * CBM_CACHE_DIR sits inside a repository — which happens in tests and is legal in

Callers 1

discover_implFunction · 0.85

Calls 1

cbm_workspace_cache_dirFunction · 0.85

Tested by

no test coverage detected