Ignore CodeGraph indexes from the repository root as well.
ci / vet-and-test (push) Successful in 2s
ci / docker-checkout-hostgateway (push) Successful in 3s

A second ignore layer keeps the SQLite database local even if codegraph init overwrites the nested policy file.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-29 13:30:11 +00:00
co-authored by Cursor
parent 3f0c6b2277
commit 49e6dd1e0f
3 changed files with 18 additions and 2 deletions
+10 -2
View File
@@ -1,5 +1,13 @@
# CodeGraph data files — local to each machine, not for committing. # CodeGraph data files — local to each machine, not for committing.
# Ignore everything in .codegraph/ except this file itself, so transient # Ignore everything in .codegraph/ except this file itself. Known transients:
# files (the database, daemon.pid, sockets, logs) never show up in git. # SQLite database and WAL/SHM, daemon.pid, sockets, and logs. The catch-all
# covers anything codegraph init adds later.
codegraph.db
codegraph.db-wal
codegraph.db-shm
codegraph.db-journal
daemon.pid
*.sock
*.log
* *
!.gitignore !.gitignore
+4
View File
@@ -0,0 +1,4 @@
# CodeGraph local index. A second layer so the database stays untracked even
# if .codegraph/.gitignore is overwritten by codegraph init.
.codegraph/*
!.codegraph/.gitignore
+4
View File
@@ -38,6 +38,10 @@
- 重试单一责任层:步骤级归调用方,传输级有界归 adapter,turn 上限归 runtime。 - 重试单一责任层:步骤级归调用方,传输级有界归 adapter,turn 上限归 runtime。
- Workspace 路径授权 ≠ OS 沙箱。 - Workspace 路径授权 ≠ OS 沙箱。
## CodeGraph
`codegraph init` 的索引写在 `.codegraph/`。仓库只跟踪 `.codegraph/.gitignore`。SQLite 数据库、WAL、pid、socket 和日志留在本机;根目录 `.gitignore` 与该文件双重忽略,避免索引被提交。
## 开发 ## 开发
在仓库根目录: 在仓库根目录: