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

Function gi_pattern_reserve

src/discover/gitignore_guard.c:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool gi_pattern_reserve(gi_guard_t *guard) {
87 cbm_ignore_checked_t *owner = guard->owner;
88 if (!gi_work(guard, 1)) {
89 return false;
90 }
91 if (owner->usage.patterns_reserved == owner->limits.max_patterns) {
92 return gi_fail(guard, CBM_IGNORE_CHECKED_LIMIT, CBM_IGNORE_CAP_PATTERNS);
93 }
94 owner->usage.patterns_reserved++;
95 return true;
96}
97
98bool gi_begin(cbm_ignore_checked_t *owner, const cbm_ignore_checked_control_t *control,
99 gi_guard_t *guard) {

Callers 1

gi_parse_passFunction · 0.85

Calls 2

gi_workFunction · 0.85
gi_failFunction · 0.85

Tested by

no test coverage detected