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

Function purge_log_sink

tests/test_incremental.c:553–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551static int g_purge_progress_lines;
552
553static void purge_log_sink(const char *line) {
554 if (!line || !strstr(line, "msg=incremental.purge")) {
555 return;
556 }
557 if (strstr(line, "msg=incremental.purge.progress")) {
558 g_purge_progress_lines++;
559 }
560 size_t used = strlen(g_purge_log);
561 (void)snprintf(g_purge_log + used, sizeof(g_purge_log) - used, "%s\n", line);
562}
563
564/* #1300: the per-file purge after incremental.edge_snapshot logged nothing
565 * until it finished, so a stall there left no trace of where the run was. It

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected