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

Function own_output_index_callback

tests/test_watcher.c:2534–2540  ·  view source on GitHub ↗

Simulates the daemon's index worker writing cbm's own output under the root * on every successful reindex (the artifact re-export of #1953). */

Source from the content-addressed store, hash-verified

2532/* Simulates the daemon's index worker writing cbm's own output under the root
2533 * on every successful reindex (the artifact re-export of #1953). */
2534static int own_output_index_callback(const char *name, const char *path, void *ud) {
2535 (void)name;
2536 (void)ud;
2537 index_call_count++;
2538 th_append_file(TH_PATH(path, CBM_ARTIFACT_DIR "/graph.py"), "# rewritten by index\n");
2539 return 0;
2540}
2541
2542/* The signature must only see what the indexer would index. Paths discovery
2543 * skips — cbm's own .codebase-memory output, built-in skip dirs, .cbmignore'd

Callers

nothing calls this directly

Calls 1

th_append_fileFunction · 0.85

Tested by

no test coverage detected