summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-19 02:37:31 -0600
committerJeff Carr <[email protected]>2025-01-19 02:37:31 -0600
commitf4ac4914906110c3a1a4a5fc29336e11122500ca (patch)
treeebd59ed18015e8c92d68cd148e78991ca0ad690a /humanTable.go
parentbdf9d97cf9bf3e9bc0724b6f949089bb46923426 (diff)
debugging, but runs ok
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/humanTable.go b/humanTable.go
index 7a128fd..22df766 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -38,7 +38,7 @@ func (f *Forge) PrintHumanTable(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"))
+ log.Info(standardTable8("repopath", "cur br", "age", "master", "devel", "user", "curver", "next", "repo type"))
all := allr.SortByFullPath()
for all.Scan() {
repo := all.Next()
@@ -54,7 +54,7 @@ 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", "master", "devel", "user", "curver", "target", "repo type"))
+ log.Info(standardTable8("repopath", "cur br", "age", "master", "devel", "user", "curver", "next", "repo type"))
// all := allr.SortByFullPath()
all := allr.All()
for all.Scan() {
@@ -161,9 +161,6 @@ func standardTable8(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 string)
func (f *Forge) printRepoToTable(repo *gitpb.Repo) {
var end string
- if repo.IsDirty() {
- end += "(dirty) "
- }
// shortened version numbers
var mhort string = repo.GetMasterVersion()
@@ -180,6 +177,11 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo) {
// age := shell.FormatDuration(time.Since(ctime))
age := shell.FormatDuration(repo.NewestAge())
+ if repo.IsDirty() {
+ age = ""
+ end += "(dirty) "
+ }
+
start := standardTable8(gopath, cname, age, mhort, dhort, uhort, chort, thort, rtype)
if f.Config.IsReadOnly(repo.GetGoPath()) {