| 1344 | return e->status == CBM_GIT_FACTS_OK && e->exit_code == -1 && e->diagnostic[0] == '\0'; |
| 1345 | } |
| 1346 | static 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 | } |
| 1358 | static 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}, |
no test coverage detected