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

Function cbm_gitlab_hooks_path

src/cli/cli.c:8249–8260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8247}
8248
8249static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
8250 size_t path_size) {
8251 const char *base = registry->options.home_dir;
8252 const char *suffix = ".gitlab/duo/hooks.json";
8253 if (registry->options.is_windows && registry->options.appdata_dir &&
8254 registry->options.appdata_dir[0]) {
8255 base = registry->options.appdata_dir;
8256 suffix = "GitLab/duo/hooks.json";
8257 }
8258 int written = snprintf(path, path_size, "%s/%s", base, suffix);
8259 return written > 0 && (size_t)written < path_size;
8260}
8261
8262static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path,
8263 size_t path_size) {

Calls

no outgoing calls

Tested by

no test coverage detected