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

Function gi_bytes

src/discover/gitignore_guard.c:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool gi_bytes(gi_guard_t *guard, size_t bytes) {
78 cbm_ignore_checked_t *owner = guard->owner;
79 if (bytes > owner->limits.max_bytes - owner->usage.bytes_reserved) {
80 return gi_fail(guard, CBM_IGNORE_CHECKED_LIMIT, CBM_IGNORE_CAP_BYTES);
81 }
82 owner->usage.bytes_reserved += bytes;
83 return true;
84}
85
86bool gi_pattern_reserve(gi_guard_t *guard) {
87 cbm_ignore_checked_t *owner = guard->owner;

Callers 2

gi_parseFunction · 0.85
cbm_ignore_checked_matchFunction · 0.85

Calls 1

gi_failFunction · 0.85

Tested by

no test coverage detected