feat(files): treat in-repo .worktrees/ checkouts as ignored (T-511)

D-106 supports opening a worktree under <repo>/.worktrees/ as its own
workspace; the dir itself is sibling checkouts, not tree content — so
the builtin ignore set hides it and the project-init scaffold
gitignores it alongside .clide/.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-13 17:41:24 +02:00
co-authored by Claude Fable 5
parent 1308cb3d23
commit 23dd7fd187
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -162,5 +162,7 @@ class IgnoreSet {
/// ignore files. Matches D-004's "walker magic: none except
/// `.git/`" — but the tree-view UI benefits from hiding `.pql/` and
/// `.dart_tool/` too since users never edit those by hand.
static IgnoreSet builtin() => IgnoreSet.parse(const ['.git/\n.pql/\n.clide/\n.dart_tool/\nbuild/\nnode_modules/\n']);
/// `.worktrees/` holds in-repo linked worktrees (D-106) — sibling
/// checkouts a user opens as their own workspaces, not tree content.
static IgnoreSet builtin() => IgnoreSet.parse(const ['.git/\n.pql/\n.clide/\n.dart_tool/\n.worktrees/\nbuild/\nnode_modules/\n']);
}