| 189 | } |
| 190 | |
| 191 | static bool gf_index(gf_fixture_t *fx, const char *mode, const char *oid, const char *path) { |
| 192 | char entry[GF_SMALL]; |
| 193 | int n = snprintf(entry, sizeof(entry), "%s,%s,%s", mode, oid, path); |
| 194 | if (n <= 0 || (size_t)n >= sizeof(entry)) |
| 195 | return false; |
| 196 | const char *argv[] = {"update-index", "--add", "--cacheinfo", entry, NULL}; |
| 197 | return gf_git(fx, argv, NULL, 0); |
| 198 | } |
| 199 | |
| 200 | static bool gf_tree(gf_fixture_t *fx, int version, char out[65]) { |
| 201 | const char *empty[] = {"read-tree", "--empty", NULL}; |
no test coverage detected