diff options
Diffstat (limited to 'doExamine.go')
| -rw-r--r-- | doExamine.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doExamine.go b/doExamine.go new file mode 100644 index 0000000..7d8794a --- /dev/null +++ b/doExamine.go @@ -0,0 +1,28 @@ +package main + +import ( + "time" + + "go.wit.com/lib/gui/shell" + "go.wit.com/lib/protobuf/gitpb" + "go.wit.com/log" +) + +func doExamine() bool { + me.found = new(gitpb.Repos) + all := me.forge.Repos.SortByFullPath() + for all.Scan() { + repo := all.Next() + if tag := repo.ExamineBranches(); tag != nil { + me.found.AppendByGoPath(repo) + ctime := tag.Creatordate.AsTime() + dur := time.Since(ctime) + log.Printf("UNKNOWN BRANCH %-50s %s %4s %s\n", repo.GetFullPath(), tag.Hash, shell.FormatDuration(dur), tag.Refname) + } + } + if len(me.found.Repos) == 0 { + return true + } + me.forge.PrintHumanTableDirty(me.found) + return false +} |
