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

Function import_artifact_generation

tests/test_pipeline.c:6834–6847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6832} imported_generation_t;
6833
6834static imported_generation_t import_artifact_generation(const char *repo_path,
6835 const char *import_path,
6836 const char *project) {
6837 imported_generation_t result = {
6838 .rc = cbm_artifact_import(repo_path, import_path),
6839 .before_nodes = -1,
6840 .after_nodes = -1,
6841 };
6842 if (result.rc == 0) {
6843 observe_named_generation(import_path, project, "StoredBefore", "StoredAfter",
6844 &result.before_nodes, &result.after_nodes);
6845 }
6846 return result;
6847}
6848
6849static bool stored_mode_is_full(const char *db_path, const char *project) {
6850 cbm_store_t *store = cbm_store_open_path(db_path);

Callers 1

test_pipeline.cFile · 0.85

Calls 2

cbm_artifact_importFunction · 0.85
observe_named_generationFunction · 0.85

Tested by

no test coverage detected