Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

style(cli): break the worktree gate assignment for clang-format

Nohj3bab06134bdf
diff --git a/src/cli/hook_augment.c b/src/cli/hook_augment.c
index 3de1691aa..342a7bd61 100644
--- a/src/cli/hook_augment.c
+++ b/src/cli/hook_augment.c
@@ -1502,8 +1502,8 @@ static char *ha_lifecycle_json_from_root(cbm_mcp_server_t *srv, yyjson_val *root
/* ignore_worktrees refuses a linked worktree, including one nested inside an
* indexed checkout or inside another linked worktree. Keep a match only when
* its root belongs to this cwd's own linked worktree, not a parent graph. */
- bool ignore_linked = srv && cwd && cbm_mcp_ignore_worktrees_enabled(srv) &&
- cbm_git_is_linked_worktree(cwd);
+ bool ignore_linked =
+ srv && cwd && cbm_mcp_ignore_worktrees_enabled(srv) && cbm_git_is_linked_worktree(cwd);
if (ignore_linked && project && !cbm_git_same_linked_worktree(cwd, project_root)) {
free(project);
project = NULL;