summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 04:58:42 -0600
committerJeff Carr <[email protected]>2025-01-07 04:58:42 -0600
commitca66a42fd16d9724d5dc8acd7516f623fa65e00e (patch)
tree68b3059898bcdcb2d768b409f4ce59d65b60000e /scan.go
parent7cc064dec034ba2dddf5eced0ce2206ecf56981b (diff)
remove lots of old stuff
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go26
1 files changed, 2 insertions, 24 deletions
diff --git a/scan.go b/scan.go
index 56c5b23..f0edf37 100644
--- a/scan.go
+++ b/scan.go
@@ -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")