beads/internal/daemon
matt wilkie e01b7412d9 feat: add Git worktree compatibility (PR #478)
Adds comprehensive Git worktree support for beads issue tracking:

Core changes:
- New internal/git/gitdir.go package for worktree detection
- GetGitDir() returns proper .git location (main repo, not worktree)
- Updated all hooks to use git.GetGitDir() instead of local helper
- BeadsDir() now prioritizes main repository's .beads directory

Features:
- Hooks auto-install in main repo when run from worktree
- Shared .beads directory across all worktrees
- Config option no-install-hooks to disable auto-install
- New bd worktree subcommand for diagnostics

Documentation:
- New docs/WORKTREES.md with setup instructions
- Updated CHANGELOG.md and AGENT_INSTRUCTIONS.md

Testing:
- Updated tests to use exported git.GetGitDir()
- Added worktree detection tests

Co-authored-by: Claude <noreply@anthropic.com>
Closes: #478
2025-12-13 12:50:33 -08:00
..
discovery.go feat: add Git worktree compatibility (PR #478) 2025-12-13 12:50:33 -08:00
discovery_test.go Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
kill_unix.go Implement bd daemons killall and logs (bd-153, bd-152) 2025-10-26 19:03:00 -07:00
kill_wasm.go WIP: WASM port - switch to ncruces/go-sqlite3, add WASM stubs 2025-11-02 22:17:08 -08:00
kill_windows.go Remove unused strings import in Windows build 2025-10-26 23:47:14 -07:00
registry.go feat(doctor): add --dry-run flag and fix registry parsing (bd-qn5, bd-a5z) 2025-12-03 00:09:25 -08:00
registry_test.go feat(doctor): add --dry-run flag and fix registry parsing (bd-qn5, bd-a5z) 2025-12-03 00:09:25 -08:00