Skip to content

listBranches

listBranches(repoDir): BranchList

Defined in: src/branches.ts:15

Local branches of a git repo, most-recently-committed first, plus the current branch and the repo’s default branch (the base a new task should prefer). Returns empty list for non-git dirs (caller falls back to a free-text branch field).

string

BranchList