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

Function gfa_linear

tests/test_test_impact_git.c:1346–1357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1344 return e->status == CBM_GIT_FACTS_OK && e->exit_code == -1 && e->diagnostic[0] == '\0';
1345}
1346static bool gfa_linear(gf_fixture_t *fx, const char *tree_a, const char *tree_m, const char *tree_h) {
1347 char a[65], m[65], h[65];
1348 bool ok = gf_commit(fx, tree_a, NULL, NULL, "ancestor A", a) &&
1349 gf_commit(fx, tree_m, a, NULL, "ancestor M", m) &&
1350 gf_commit(fx, tree_h, m, NULL, "ancestor H", h) &&
1351 gf_ref(fx, "refs/heads/topic", h) && gf_ref(fx, "refs/heads/base", m);
1352 if (ok) {
1353 memcpy(fx->a, a, fx->oid_length + 1); memcpy(fx->q, m, fx->oid_length + 1);
1354 memcpy(fx->base, m, fx->oid_length + 1); memcpy(fx->head, h, fx->oid_length + 1);
1355 }
1356 return ok;
1357}
1358static bool gfa_rename_history(gf_fixture_t *fx) {
1359 const gfi_raw_entry_t a[] = {
1360 {"100644", "old.c", 5, fx->old_text}, {"100644", "removed.c", 9, fx->binary},

Callers 2

gfa_rename_historyFunction · 0.85

Calls 2

gf_commitFunction · 0.85
gf_refFunction · 0.85

Tested by

no test coverage detected