show abnormal branch
This commit is contained in:
parent
156af56859
commit
b8d0864c37
|
@ -54,7 +54,8 @@ func (f *Forge) PrintHumanTableDirty(allr *gitpb.Repos) {
|
||||||
var count int
|
var count int
|
||||||
// log.Info(standardStart5("gopath", "cur name", "master", "user", "repo type"))
|
// 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", "target", "master", "devel", "user", "curver", "repo type"))
|
||||||
all := allr.SortByFullPath()
|
// all := allr.SortByFullPath()
|
||||||
|
all := allr.All()
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
repo := all.Next()
|
repo := all.Next()
|
||||||
f.printRepoToTable(repo)
|
f.printRepoToTable(repo)
|
||||||
|
@ -196,6 +197,12 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo) {
|
||||||
switch repo.GetState() {
|
switch repo.GetState() {
|
||||||
case "PERFECT":
|
case "PERFECT":
|
||||||
case "unchanged":
|
case "unchanged":
|
||||||
|
case "unknown branches":
|
||||||
|
if repo.CurrentTag == nil {
|
||||||
|
end += "(" + repo.GetState() + ") "
|
||||||
|
} else {
|
||||||
|
end += "(unknown branch " + repo.CurrentTag.Refname + ") "
|
||||||
|
}
|
||||||
// end += "(invalid tag) "
|
// end += "(invalid tag) "
|
||||||
default:
|
default:
|
||||||
end += "(" + repo.GetState() + ") "
|
end += "(" + repo.GetState() + ") "
|
||||||
|
|
Loading…
Reference in New Issue