summaryrefslogtreecommitdiff
path: root/doExamine.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-17 10:59:05 -0600
committerJeff Carr <[email protected]>2025-01-17 10:59:05 -0600
commit9acbb24284ecda4f5ace1cb3d200e363c47c8725 (patch)
tree7af266bff19df14c0961d6f05e1df9e4895c5e77 /doExamine.go
parentaf84727178d1fbe1df04a5f8ee536798f3761d6d (diff)
start an 'examine' argv
Diffstat (limited to 'doExamine.go')
-rw-r--r--doExamine.go28
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
+}