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

Function want_aspect

src/store/store.c:10822–10838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10820}
10821
10822static bool want_aspect(const char **aspects, int aspect_count, const char *name) {
10823 if (!aspects || aspect_count == 0) {
10824 return true;
10825 }
10826 for (int i = 0; i < aspect_count; i++) {
10827 if (strcmp(aspects[i], "all") == 0) {
10828 return true;
10829 }
10830 if (strcmp(aspects[i], "overview") == 0 && cbm_store_arch_aspect_in_overview(name)) {
10831 return true;
10832 }
10833 if (strcmp(aspects[i], name) == 0) {
10834 return true;
10835 }
10836 }
10837 return false;
10838}
10839
10840int cbm_store_get_architecture(cbm_store_t *s, const char *project, const char *path,
10841 const char **aspects, int aspect_count,

Callers 1

Calls 1

Tested by

no test coverage detected