Files
beads/.gitignore
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

116 lines
1.8 KiB
Plaintext

# Binaries
/beads
/bd
*.exe
*.dll
*.so
*.dylib
# Test binaries
*.test
*.out
/bd-test
# Go workspace file
go.work
# Go build cache
pkg/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# Claude Code
.claude/settings.local.json
# OS
.DS_Store
Thumbs.db
# SQLite databases (now using JSONL as source of truth)
*.db
*.db-journal
*.db-wal
*.db-shm
# Daemon runtime files
.beads/daemon.log
.beads/daemon.pid
.beads/daemon.lock
.beads/daemon-error
.beads/bd.sock
.beads/.exclusive-lock
# .beads directory files (keep JSONL only)
.beads/.gitignore
.beads/db.sqlite
.beads/bd.db
# Keep JSONL exports (source of truth for git)
!.beads/*.jsonl
# 3-way merge snapshot files (local-only, for deletion tracking)
.beads/beads.base.jsonl
.beads/beads.left.jsonl
.beads/beads.base.meta.json
.beads/beads.left.meta.json
# Note: .beads/deletions.jsonl is intentionally NOT ignored
# It must be tracked in git for cross-clone deletion propagation (bd-imj)
# Git merge driver temp files (created during conflicts with numbered extensions)
.beads/*.json[0-9]
.beads/*.jsonl[0-9]
# Ignore nix result
result
# direnv (machine-specific environment)
.envrc
# GoReleaser build artifacts
dist/
Formula/bd.rb
# Git worktrees
.worktrees/
.beads/pollution-backup.jsonl
# npm package - exclude downloaded binaries and archives
npm-package/bin/bd
npm-package/bin/*.tar.gz
npm-package/bin/*.zip
npm-package/bin/CHANGELOG.md
npm-package/bin/LICENSE
npm-package/bin/README.md
npm-package/node_modules/
npm-package/package-lock.json
.beads/beads.db?*
bd-original
mcp_agent_mail/
bd-test
bd-fixed
.cursor/
# Python cache files
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
.envrc
# Performance profiling files (benchmarks, bd doctor --perf, and bd --profile)
*.prof
*.out
beads-perf-*.prof
bench-cpu-*.prof
bd-profile-*.prof
bd-trace-*.out
# AI planning documents (ephemeral)
history/