Files
beads/cmd/bd
Steve Yegge 22756509cc Refactor: Extract path canonicalization into utils.CanonicalizePath()
Extracts duplicated path canonicalization logic (filepath.Abs + EvalSymlinks)
into a reusable helper function utils.CanonicalizePath() in internal/utils/path.go.

Changes:
- Add internal/utils/path.go with CanonicalizePath() function
- Add comprehensive tests in internal/utils/path_test.go
- Replace inline canonicalization in beads.go:131-140
- Replace inline canonicalization in cmd/bd/main.go:446-454
- Replace inline canonicalization in cmd/bd/nodb.go:25-33

The new helper maintains identical behavior:
1. Converts path to absolute form via filepath.Abs
2. Resolves symlinks via filepath.EvalSymlinks
3. Falls back gracefully on errors (returns absPath if EvalSymlinks fails,
   returns original path if Abs fails)

Fixes bd-efe8

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 19:11:08 -08:00
..
2025-10-27 20:08:50 -07:00
2025-10-31 22:39:53 -07:00
2025-10-27 20:08:50 -07:00
2025-10-27 20:08:50 -07:00
2025-10-31 22:39:53 -07:00
2025-11-02 17:09:39 -08:00
2025-11-02 17:09:39 -08:00
2025-10-27 20:08:50 -07:00
2025-11-01 23:49:55 -07:00