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

Function cbm_copilot_config_dir

src/cli/cli.c:2410–2417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2408}
2409
2410static void cbm_copilot_config_dir(const char *home_dir, char *out, size_t out_sz) {
2411 char env_buf[CLI_BUF_1K];
2412 const char *custom = cbm_safe_getenv("COPILOT_HOME", env_buf, sizeof(env_buf), NULL);
2413 snprintf(out, out_sz, "%s", custom && custom[0] ? custom : "");
2414 if ((!custom || !custom[0]) && home_dir && home_dir[0]) {
2415 snprintf(out, out_sz, "%s/.copilot", home_dir);
2416 }
2417}
2418
2419static void cbm_crush_config_path(const char *home_dir, char *out, size_t out_sz) {
2420 char env_buf[CLI_BUF_1K];

Calls 1

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected