feat: look for repos in the usual folders, not just ~/git
CI / Checks (pull_request) Successful in 41s
PR title / Conventional title (pull_request) Successful in 2s

Without roots in the config, repos are found under whichever of ~/git,
~/repo, ~/repos, ~/projects, ~/code, ~/source and ~/src exist. Missing
ones cost a stat each. A root that's a symlink to another is scanned
once, and a repo under two roots keeps the first one's name.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-13 15:22:02 +02:00
1 parent 87141cb53b
commit 4d66126c36
5 files changed
+48 -11

No files matched your search

+1 -1
View File
@@ -287,7 +287,7 @@ Flags:
if start == "" {
start, _ = os.Getwd()
}
roots := []string{"~/git"}
roots := repo.DefaultRoots
if pc.Repos.Roots != nil {
roots = *pc.Repos.Roots
}