| 5136 | } |
| 5137 | |
| 5138 | static int cbm_remove_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 5139 | char command[CLI_BUF_8K]; |
| 5140 | if (cbm_build_augment_command(binary_path, command, sizeof(command)) != CLI_OK) { |
| 5141 | return CLI_ERR; |
| 5142 | } |
| 5143 | return remove_hooks_json((hooks_remove_args_t){ |
| 5144 | .settings_path = hooks_path, |
| 5145 | .hook_event = "SessionStart", |
| 5146 | .match_command_exact = command, |
| 5147 | }); |
| 5148 | } |
| 5149 | |
| 5150 | static int cbm_edit_devin_context_hooks(const char *config_path, const char *binary_path, |
| 5151 | bool remove, bool include_session_start) { |
no test coverage detected