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

Function gc_edge

src/pipeline/pass_operator.c:1777–1788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1775}
1776
1777static void gc_edge(gc_t *g, const gc_site_t *s, const gc_chart_t *hit, const char *chart,
1778 const char *root) {
1779 char esc[CBM_SZ_1K];
1780 char resc[CBM_SZ_512];
1781 char props[CBM_SZ_2K];
1782 cbm_json_escape(esc, (int)sizeof(esc), chart);
1783 cbm_json_escape(resc, (int)sizeof(resc), root ? root : "");
1784 snprintf(props, sizeof(props), "{\"via\":\"helm-sdk\",\"chart\":\"%s\"%s%s%s,\"line\":%d}", esc,
1785 root ? ",\"root\":\"" : "", root ? resc : "", root ? "\"" : "", s->line);
1786 cbm_gbuf_insert_edge(g->ctx->gbuf, s->fn, hit->id, "DEPLOYS", props);
1787 g->edges++;
1788}
1789
1790/* The repository dir a chart load's unknown root stood for: the matched
1791 * chart directory without the tail. */

Callers 1

gc_link_sitesFunction · 0.85

Calls 2

cbm_json_escapeFunction · 0.85
cbm_gbuf_insert_edgeFunction · 0.85

Tested by

no test coverage detected