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

Function ci_floor

tests/test_test_impact_changes.c:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return ci_path(row,(const unsigned char *)path,strlen(path),status);
30}
31static bool ci_floor(const cbm_changes_t *c,size_t want,unsigned issue) {
32 size_t count=777; const cbm_change_file_t *rows=cbm_changes_files(c,&count);
33 if (!c || count!=want || (want && !rows) || cbm_changes_patch_reconciled(c) ||
34 cbm_changes_can_narrow(c) || (cbm_changes_issues(c)&issue)!=issue) return false;
35 for (size_t i=0;i<count;i++)
36 if (rows[i].evidence!=CBM_CHANGE_WHOLE_FILE || !(rows[i].reasons&CBM_CHANGE_UNRECONCILED) || rows[i].patch_file) return false;
37 return true;
38}
39static bool ci_legacy(const unsigned char *patch,size_t len,bool complete,int want_count) {
40 cbm_diff_t *d=cbm_diff_parse((const char *)patch,len); int count=-1;
41 if (!d) return false;

Callers 1

Calls 4

cbm_changes_filesFunction · 0.85
cbm_changes_can_narrowFunction · 0.85
cbm_changes_issuesFunction · 0.85

Tested by

no test coverage detected