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

Function cbm_gitlab_hooks_path

src/cli/cli.c:9294–9305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9292}
9293
9294static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
9295 size_t path_size) {
9296 const char *base = registry->options.home_dir;
9297 const char *suffix = ".gitlab/duo/hooks.json";
9298 if (registry->options.is_windows && registry->options.appdata_dir &&
9299 registry->options.appdata_dir[0]) {
9300 base = registry->options.appdata_dir;
9301 suffix = "GitLab/duo/hooks.json";
9302 }
9303 int written = snprintf(path, path_size, "%s/%s", base, suffix);
9304 return written > 0 && (size_t)written < path_size;
9305}
9306
9307static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path,
9308 size_t path_size) {

Calls

no outgoing calls

Tested by

no test coverage detected