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

Function cbm_gitlab_hooks_path

src/cli/cli.c:8034–8045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8032}
8033
8034static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
8035 size_t path_size) {
8036 const char *base = registry->options.home_dir;
8037 const char *suffix = ".gitlab/duo/hooks.json";
8038 if (registry->options.is_windows && registry->options.appdata_dir &&
8039 registry->options.appdata_dir[0]) {
8040 base = registry->options.appdata_dir;
8041 suffix = "GitLab/duo/hooks.json";
8042 }
8043 int written = snprintf(path, path_size, "%s/%s", base, suffix);
8044 return written > 0 && (size_t)written < path_size;
8045}
8046
8047static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path,
8048 size_t path_size) {

Calls

no outgoing calls

Tested by

no test coverage detected