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

Function cbm_gitlab_hooks_path

src/cli/cli.c:7891–7902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7889}
7890
7891static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
7892 size_t path_size) {
7893 const char *base = registry->options.home_dir;
7894 const char *suffix = ".gitlab/duo/hooks.json";
7895 if (registry->options.is_windows && registry->options.appdata_dir &&
7896 registry->options.appdata_dir[0]) {
7897 base = registry->options.appdata_dir;
7898 suffix = "GitLab/duo/hooks.json";
7899 }
7900 int written = snprintf(path, path_size, "%s/%s", base, suffix);
7901 return written > 0 && (size_t)written < path_size;
7902}
7903
7904static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path,
7905 size_t path_size) {

Calls

no outgoing calls

Tested by

no test coverage detected