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

Function gic_replay_match

tests/test_gitignore_checked.c:442–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442static bool gic_replay_match(cbm_ignore_checked_t *owner, const cbm_ignore_program_t **program,
443 size_t step, cbm_ignore_checked_status_t *status,
444 cbm_ignore_checked_error_t *error) {
445 cbm_ignore_checked_control_t control = gic_control();
446 cbm_ignore_decision_t decision = CBM_IGNORE_IGNORED;
447 size_t row = step - 2;
448 *status = cbm_ignore_checked_match(owner, program[row == 2 ? 1 : 0], gic_paths[row],
449 strlen(gic_paths[row]), false, &control, &decision, error);
450 return decision ==
451 (*status == CBM_IGNORE_CHECKED_OK ? gic_decisions[row] : CBM_IGNORE_UNAVAILABLE);
452}
453
454static bool gic_replay(const cbm_ignore_checked_limits_t *limits, gic_replay_result *out) {
455 cbm_ignore_checked_t *owner = NULL;

Callers 1

gic_replayFunction · 0.85

Calls 2

gic_controlFunction · 0.85
cbm_ignore_checked_matchFunction · 0.85

Tested by

no test coverage detected