| 91 | } commit_t; |
| 92 | |
| 93 | static void commit_add_file(commit_t *c, const char *file) { |
| 94 | if (c->count >= c->cap) { |
| 95 | c->cap = c->cap ? c->cap * PAIR_LEN : GH_INIT_CAP; |
| 96 | c->files = safe_realloc(c->files, c->cap * sizeof(char *)); |
| 97 | } |
| 98 | c->files[c->count++] = strdup(file); |
| 99 | } |
| 100 | |
| 101 | static void commit_free(commit_t *c) { |
| 102 | for (int i = 0; i < c->count; i++) { |
no test coverage detected