beads/cmd/bd/setup
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
..
aider.go fix(docs): correct bd dep add syntax and semantics 2025-11-29 22:07:00 -08:00
claude.go feat: add Git worktree compatibility (PR #478) 2025-12-13 12:50:33 -08:00
claude_test.go feat: add Git worktree compatibility (PR #478) 2025-12-13 12:50:33 -08:00
constants.go feat: add context optimization features for AI agents (#297) 2025-11-12 10:48:36 -08:00
cursor.go fix(docs): correct bd dep add syntax and semantics 2025-11-29 22:07:00 -08:00
utils.go Fix: Change file permissions from 0644 to 0600 for security 2025-11-23 20:11:52 -08:00
utils_test.go fix: skip file permission tests on Windows 2025-11-24 22:23:45 -08:00