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

Function gi_error

src/discover/gitignore_guard.c:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <string.h>
4
5void gi_error(cbm_ignore_checked_error_t *error, cbm_ignore_checked_status_t status,
6 cbm_ignore_cap_t cap, size_t offset) {
7 if (!error) {
8 return;
9 }
10 memset(error, 0, sizeof(*error));
11 error->status = status;
12 error->cap = cap;
13 error->byte_offset = offset;
14 if (status != CBM_IGNORE_CHECKED_OK) {
15 static const char message[] = "checked ignore operation failed";
16 memcpy(error->diagnostic, message, sizeof(message));
17 }
18}
19
20bool gi_active(const gi_guard_t *guard) {
21 return !guard || guard->owner->usage.terminal_status == CBM_IGNORE_CHECKED_OK;

Callers 4

gi_failFunction · 0.85
gi_parseFunction · 0.85
gi_openFunction · 0.85
cbm_ignore_checked_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected