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

Function autoindex_limit_capture_log

tests/test_mcp.c:22769–22779  ·  view source on GitHub ↗

Keeps only the too_many_files skip line, so later lines cannot displace it, * and records whether an admitted auto-index actually ran to completion. */

Source from the content-addressed store, hash-verified

22767/* Keeps only the too_many_files skip line, so later lines cannot displace it,
22768 * and records whether an admitted auto-index actually ran to completion. */
22769static void autoindex_limit_capture_log(const char *line) {
22770 if (!line) {
22771 return;
22772 }
22773 if (strstr(line, "msg=autoindex.skip") && strstr(line, "reason=too_many_files")) {
22774 snprintf(autoindex_skip_log, sizeof(autoindex_skip_log), "%s", line);
22775 }
22776 if (strstr(line, "msg=autoindex.done")) {
22777 autoindex_saw_done = true;
22778 }
22779}
22780
22781typedef struct {
22782 int files; /* indexable .py files written into the root */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected