summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
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()) {