chore: remove issue ID references from comments and changelogs
Strip (bd-xxx), (gt-xxx) suffixes from code comments and changelog entries. The descriptions remain meaningful without the ephemeral issue IDs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -300,7 +300,7 @@ const (
|
||||
DepRelated = types.DepRelated
|
||||
DepParentChild = types.DepParentChild
|
||||
DepDiscoveredFrom = types.DepDiscoveredFrom
|
||||
DepConditionalBlocks = types.DepConditionalBlocks // B runs only if A fails (bd-kzda)
|
||||
DepConditionalBlocks = types.DepConditionalBlocks // B runs only if A fails
|
||||
)
|
||||
|
||||
// SortPolicy constants
|
||||
@@ -385,7 +385,7 @@ func FindDatabasePath() string {
|
||||
// - Any *.db file (excluding backups and vc.db)
|
||||
// - Any *.jsonl file (JSONL-only mode or git-tracked issues)
|
||||
//
|
||||
// Returns false for directories that only contain daemon registry files (bd-420).
|
||||
// Returns false for directories that only contain daemon registry files.
|
||||
// This prevents FindBeadsDir from returning ~/.beads/ which only has registry.json.
|
||||
func hasBeadsProjectFiles(beadsDir string) bool {
|
||||
// Check for project configuration files
|
||||
@@ -416,11 +416,11 @@ func hasBeadsProjectFiles(beadsDir string) bool {
|
||||
|
||||
// FindBeadsDir finds the .beads/ directory in the current directory tree
|
||||
// Returns empty string if not found. Supports both database and JSONL-only mode.
|
||||
// Stops at the git repository root to avoid finding unrelated directories (bd-c8x).
|
||||
// Validates that the directory contains actual project files (bd-420).
|
||||
// Stops at the git repository root to avoid finding unrelated directories.
|
||||
// Validates that the directory contains actual project files.
|
||||
// Redirect files are supported: if a .beads/redirect file exists, its contents
|
||||
// are used as the actual .beads directory path.
|
||||
// For worktrees, prioritizes the main repository's .beads directory (bd-de6).
|
||||
// For worktrees, prioritizes the main repository's .beads directory.
|
||||
// This is useful for commands that need to detect beads projects without requiring a database.
|
||||
func FindBeadsDir() string {
|
||||
// 1. Check BEADS_DIR environment variable (preferred)
|
||||
@@ -431,14 +431,14 @@ func FindBeadsDir() string {
|
||||
absBeadsDir = followRedirect(absBeadsDir)
|
||||
|
||||
if info, err := os.Stat(absBeadsDir); err == nil && info.IsDir() {
|
||||
// Validate directory contains actual project files (bd-420)
|
||||
// Validate directory contains actual project files
|
||||
if hasBeadsProjectFiles(absBeadsDir) {
|
||||
return absBeadsDir
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 2. For worktrees, check main repository root first (bd-de6)
|
||||
// 2. For worktrees, check main repository root first
|
||||
var mainRepoRoot string
|
||||
if git.IsWorktree() {
|
||||
var err error
|
||||
@@ -449,7 +449,7 @@ func FindBeadsDir() string {
|
||||
// Follow redirect if present
|
||||
beadsDir = followRedirect(beadsDir)
|
||||
|
||||
// Validate directory contains actual project files (bd-420)
|
||||
// Validate directory contains actual project files
|
||||
if hasBeadsProjectFiles(beadsDir) {
|
||||
return beadsDir
|
||||
}
|
||||
@@ -463,7 +463,7 @@ func FindBeadsDir() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// Find git root to limit the search (bd-c8x)
|
||||
// Find git root to limit the search
|
||||
gitRoot := findGitRoot()
|
||||
if git.IsWorktree() && mainRepoRoot != "" {
|
||||
// For worktrees, extend search boundary to include main repo
|
||||
@@ -476,13 +476,13 @@ func FindBeadsDir() string {
|
||||
// Follow redirect if present
|
||||
beadsDir = followRedirect(beadsDir)
|
||||
|
||||
// Validate directory contains actual project files (bd-420)
|
||||
// Validate directory contains actual project files
|
||||
if hasBeadsProjectFiles(beadsDir) {
|
||||
return beadsDir
|
||||
}
|
||||
}
|
||||
|
||||
// Stop at git root to avoid finding unrelated directories (bd-c8x)
|
||||
// Stop at git root to avoid finding unrelated directories
|
||||
if gitRoot != "" && dir == gitRoot {
|
||||
break
|
||||
}
|
||||
@@ -493,7 +493,7 @@ func FindBeadsDir() string {
|
||||
|
||||
// FindJSONLPath returns the expected JSONL file path for the given database path.
|
||||
// It searches for existing *.jsonl files in the database directory and returns
|
||||
// the first one found, preferring issues.jsonl over beads.jsonl (bd-6xd).
|
||||
// the first one found, preferring issues.jsonl over beads.jsonl.
|
||||
//
|
||||
// This function does not create directories or files - it only discovers paths.
|
||||
// Use this when you need to know where bd stores its JSONL export.
|
||||
@@ -515,7 +515,7 @@ type DatabaseInfo struct {
|
||||
|
||||
// findGitRoot returns the root directory of the current git repository,
|
||||
// or empty string if not in a git repository. Used to limit directory
|
||||
// tree walking to within the current git repo (bd-c8x).
|
||||
// tree walking to within the current git repo.
|
||||
//
|
||||
// This function delegates to git.GetRepoRoot() which is worktree-aware
|
||||
// and handles Windows path normalization.
|
||||
@@ -524,7 +524,7 @@ func findGitRoot() string {
|
||||
}
|
||||
|
||||
// findDatabaseInTree walks up the directory tree looking for .beads/*.db
|
||||
// Stops at the git repository root to avoid finding unrelated databases (bd-c8x).
|
||||
// Stops at the git repository root to avoid finding unrelated databases.
|
||||
// For worktrees, searches the main repository root first, then falls back to worktree.
|
||||
// Prefers config.json, falls back to beads.db, and warns if multiple .db files exist.
|
||||
// Redirect files are supported: if a .beads/redirect file exists, its contents
|
||||
@@ -562,7 +562,7 @@ func findDatabaseInTree() string {
|
||||
// If not found in main repo, fall back to worktree search below
|
||||
}
|
||||
|
||||
// Find git root to limit the search (bd-c8x)
|
||||
// Find git root to limit the search
|
||||
gitRoot := findGitRoot()
|
||||
if git.IsWorktree() && mainRepoRoot != "" {
|
||||
// For worktrees, extend search boundary to include main repo
|
||||
@@ -589,7 +589,7 @@ func findDatabaseInTree() string {
|
||||
break
|
||||
}
|
||||
|
||||
// Stop at git root to avoid finding unrelated databases (bd-c8x)
|
||||
// Stop at git root to avoid finding unrelated databases
|
||||
if gitRoot != "" && dir == gitRoot {
|
||||
break
|
||||
}
|
||||
@@ -602,7 +602,7 @@ func findDatabaseInTree() string {
|
||||
|
||||
// FindAllDatabases scans the directory hierarchy for the closest .beads directory.
|
||||
// Returns a slice with at most one DatabaseInfo - the closest database to CWD.
|
||||
// Stops searching upward as soon as a .beads directory is found (gt-bzd),
|
||||
// Stops searching upward as soon as a .beads directory is found,
|
||||
// because in multi-workspace setups (like Gas Town), nested .beads directories
|
||||
// are intentional and separate - parent directories are out of scope.
|
||||
// Redirect files are supported: if a .beads/redirect file exists, its contents
|
||||
@@ -616,7 +616,7 @@ func FindAllDatabases() []DatabaseInfo {
|
||||
return databases
|
||||
}
|
||||
|
||||
// Find git root to limit the search (bd-c8x)
|
||||
// Find git root to limit the search
|
||||
gitRoot := findGitRoot()
|
||||
|
||||
// Walk up directory tree
|
||||
@@ -668,7 +668,7 @@ func FindAllDatabases() []DatabaseInfo {
|
||||
IssueCount: issueCount,
|
||||
})
|
||||
|
||||
// Stop searching upward - the closest .beads is the one to use (gt-bzd)
|
||||
// Stop searching upward - the closest .beads is the one to use
|
||||
// Parent directories are out of scope in multi-workspace setups
|
||||
break
|
||||
}
|
||||
@@ -681,7 +681,7 @@ func FindAllDatabases() []DatabaseInfo {
|
||||
break
|
||||
}
|
||||
|
||||
// Stop at git root to avoid finding unrelated databases (bd-c8x)
|
||||
// Stop at git root to avoid finding unrelated databases
|
||||
if gitRoot != "" && dir == gitRoot {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user