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

Function artifact_path

src/pipeline/artifact.c:126–129  ·  view source on GitHub ↗

Build path: /.codebase-memory/ into caller-owned buf. */

Source from the content-addressed store, hash-verified

124
125/* Build path: <repo>/.codebase-memory/<name> into caller-owned buf. */
126static bool artifact_path(char *buf, size_t bufsz, const char *repo_path, const char *name) {
127 int n = snprintf(buf, bufsz, "%s/%s/%s", repo_path, CBM_ARTIFACT_DIR, name);
128 return n >= 0 && (size_t)n < bufsz;
129}
130
131/* Read entire file into malloc'd buffer. Sets *out_len. Returns NULL on error. */
132static char *read_file_alloc(const char *path, size_t *out_len) {

Callers 8

read_metadata_versionFunction · 0.85
write_metadataFunction · 0.85
ensure_gitattributesFunction · 0.85
cbm_artifact_exportFunction · 0.85
cbm_artifact_importFunction · 0.85
cbm_artifact_existsFunction · 0.85
cbm_artifact_commitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected