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

Function bare_project_encoding_usable

src/mcp/mcp.c:1644–1646  ·  view source on GitHub ↗

#1827: a bare non-ASCII selector, typically the real folder name of a repo * under a CJK path, is encoded exactly like the path segment it came from * (non-ASCII bytes -> hex, #571), so the exact/tail lookup matches the stored * identity. Stored names never change; ASCII selectors keep their existing * validation; a selector that collapses to the "root" fallback is left alone * so it never se

Source from the content-addressed store, hash-verified

1642 * validation; a selector that collapses to the "root" fallback is left alone
1643 * so it never selects the root project. */
1644static bool bare_project_encoding_usable(const char *encoded) {
1645 return strcmp(encoded, "root") != 0 && cbm_validate_project_name(encoded);
1646}
1647
1648static char *resolve_path_owner(const char *path, char *derived); /* #1690, defined below */
1649

Callers 1

normalize_project_argFunction · 0.85

Calls 1

Tested by

no test coverage detected