feat: show local branch count in the Repos table

A repo that keeps several branches (e.g. one theme per branch) only ever
showed its checked-out branch, hiding that the others exist. The Repos
table now renders the active branch plus `+N` for the other local
branches (cyan when >1), the BRANCH column widened to fit, and
`vulp status` prints "(+N more local)". The full list stays in the
detail Branches tab; RepoSummary.branch_count is in --json too.
This commit is contained in:
dualfroz committed 2026-07-08 16:21:22 +02:00
1 parent 212c55d138
commit 3426a28c48
3 files changed
+19 -4

No files matched your search

+2 -1
View File
@@ -92,7 +92,8 @@ pub fn status(cfg: &AppConfig, json: bool, repo: &str) -> Result<()> {
}
println!("name: {}", r.name);
println!("path: {}", r.path.display());
println!("branch: {}", r.branch);
println!("branch: {}{}", r.branch,
if r.branch_count > 1 { format!(" (+{} more local)", r.branch_count - 1) } else { String::new() });
println!("dirty: {}", r.is_dirty);
println!("ahead: {}", r.ahead);
println!("behind: {}", r.behind);