diff options
Diffstat (limited to 'scan.go')
| -rw-r--r-- | scan.go | 26 |
1 files changed, 2 insertions, 24 deletions
@@ -73,8 +73,8 @@ func (r *RepoRow) NewScan2(pb *gitpb.Repo) int { r.develVersion.SetLabel(pb.GetDevelVersion()) r.userVersion.SetLabel(pb.GetUserVersion()) r.gitState.SetLabel(r.Status.GitState()) - r.currentName.SetLabel(r.Status.GetCurrentBranchName()) - r.currentVersion.SetLabel(r.Status.GetCurrentBranchVersion()) + r.currentName.SetLabel(pb.GetCurrentBranchName()) + r.currentVersion.SetLabel(pb.GetCurrentBranchVersion()) if r.State() == "merge to main" { r.Hide() @@ -85,28 +85,6 @@ func (r *RepoRow) NewScan2(pb *gitpb.Repo) int { r.Show() } - /* - tags := []string{"%(objectname)", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"} - format := strings.Join(tags, "_,,,_") - cmd := []string{"git", "for-each-ref", "--sort=taggerdate", "--format", format} - // log.Info("RUNNING:", strings.Join(cmd, " ")) - result := r.pb.RunQuiet(cmd) - if result.Error != nil { - log.Warn("git for-each-ref error:", result.Error) - } - for i, line := range result.Stdout { - log.Info(i, line) - } - - if me.hideFunction == nil { - // application didn't register a hide function - // always show everything in that case - r.Show() - } else { - me.hideFunction(r) - } - */ - // print out whatever changes have happened if c, ok := r.Status.Changed(); ok { log.Log(REPOWARN, "something finally changed") |
