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

Function cbm_gitlab_hooks_path

src/cli/cli.c:7885–7896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected