| 201 | } |
| 202 | |
| 203 | static bool mcp_command_hook_probe(void *context, const char *command) { |
| 204 | mcp_command_hook_probe_t *probe = context; |
| 205 | if (!probe || !command) { |
| 206 | return false; |
| 207 | } |
| 208 | if (strstr(command, "merge-base")) { |
| 209 | probe->merge_base_calls++; |
| 210 | return !probe->reject_merge_base; |
| 211 | } |
| 212 | probe->diff_calls++; |
| 213 | return true; |
| 214 | } |
| 215 | |
| 216 | static bool mcp_search_command_hook_probe(void *context, const char *command) { |
| 217 | mcp_search_command_probe_t *probe = context; |
nothing calls this directly
no outgoing calls
no test coverage detected