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

Function gf_index

tests/test_test_impact_git.c:191–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static 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
200static bool gf_tree(gf_fixture_t *fx, int version, char out[65]) {
201 const char *empty[] = {"read-tree", "--empty", NULL};

Callers 2

gf_treeFunction · 0.85

Calls 1

gf_gitFunction · 0.85

Tested by

no test coverage detected