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.

Fix portable stat declarations for worktree detection

Nohjb2e143371115
diff --git a/src/git/git_context.c b/src/git/git_context.c
index 38802e5aa..640befd6c 100644
--- a/src/git/git_context.c
+++ b/src/git/git_context.c
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
enum {
GIT_CMD_MAX = 1024,