summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-17 13:20:40 -0600
committerJeff Carr <[email protected]>2025-01-17 13:20:40 -0600
commitb8d0864c37a53045e8fc801777749826f1221dbc (patch)
tree4e802f0bb736edfbe3efa17d47adccf4a732b230 /humanTable.go
parent156af568594e6c1b7be8c4d2c4256ba5117b0a1b (diff)
show abnormal branchv0.0.50
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/humanTable.go b/humanTable.go
index 0c0c62e..54afb68 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -54,7 +54,8 @@ func (f *Forge) PrintHumanTableDirty(allr *gitpb.Repos) {
var count int
// log.Info(standardStart5("gopath", "cur name", "master", "user", "repo type"))
log.Info(standardTable8("repopath", "cur br", "age", "target", "master", "devel", "user", "curver", "repo type"))
- all := allr.SortByFullPath()
+ // all := allr.SortByFullPath()
+ all := allr.All()
for all.Scan() {
repo := all.Next()
f.printRepoToTable(repo)
@@ -196,6 +197,12 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo) {
switch repo.GetState() {
case "PERFECT":
case "unchanged":
+ case "unknown branches":
+ if repo.CurrentTag == nil {
+ end += "(" + repo.GetState() + ") "
+ } else {
+ end += "(unknown branch " + repo.CurrentTag.Refname + ") "
+ }
// end += "(invalid tag) "
default:
end += "(" + repo.GetState() + ") "