29 lines
625 B
Go
29 lines
625 B
Go
|
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
|
||
|
}
|