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

Function cbm_gitlab_hooks_path

src/cli/cli.c:7841–7852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7839}
7840
7841static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
7842 size_t path_size) {
7843 const char *base = registry->options.home_dir;
7844 const char *suffix = ".gitlab/duo/hooks.json";
7845 if (registry->options.is_windows && registry->options.appdata_dir &&
7846 registry->options.appdata_dir[0]) {
7847 base = registry->options.appdata_dir;
7848 suffix = "GitLab/duo/hooks.json";
7849 }
7850 int written = snprintf(path, path_size, "%s/%s", base, suffix);
7851 return written > 0 && (size_t)written < path_size;
7852}
7853
7854static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path,
7855 size_t path_size) {

Calls

no outgoing calls

Tested by

no test coverage detected