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

Function cbm_upsert_gitlab_session_hook

src/cli/cli.c:4419–4431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4417}
4418
4419static int cbm_upsert_gitlab_session_hook(const char *hooks_path, const char *binary_path) {
4420 char command[CLI_BUF_8K];
4421 if (cbm_build_augment_command(binary_path, command, sizeof(command)) != CLI_OK) {
4422 return CLI_ERR;
4423 }
4424 return upsert_hooks_json((hooks_upsert_args_t){
4425 .settings_path = hooks_path,
4426 .hook_event = "SessionStart",
4427 .command_str = command,
4428 .timeout_value = CMM_HOOK_TIMEOUT_SEC,
4429 .match_command_exact = command,
4430 });
4431}
4432
4433static int cbm_remove_gitlab_session_hook(const char *hooks_path, const char *binary_path) {
4434 char command[CLI_BUF_8K];

Callers 1

Calls 2

upsert_hooks_jsonFunction · 0.85

Tested by

no test coverage detected