summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-29 02:13:50 -0600
committerJeff Carr <[email protected]>2024-11-29 02:13:50 -0600
commitf750b96cc55d42f4edfcd324ef9878525d0cf428 (patch)
tree8a7604dd6f32335c010261eacd9adf8fa3c9a5d6 /scan.go
parentc672ab70da1b1398dd5fd93a21afaa6f6c089bc3 (diff)
attempting commit within refactor'd code
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/scan.go b/scan.go
index f6a3b14..8c0afd5 100644
--- a/scan.go
+++ b/scan.go
@@ -67,9 +67,13 @@ func (r *RepoRow) NewScan() int {
r.masterVersion.SetLabel(r.pb.GitMasterVersion())
r.develVersion.SetLabel(r.pb.GitDevelVersion())
r.userVersion.SetLabel(r.pb.GitUserVersion())
- // r.gitState.SetLabel(r.Status.GetState())
- // r.currentName.SetLabel(r.Status.CurrentBranchName())
- // r.currentVersion.SetLabel(r.Status.CurrentBranchVersion())
+ r.gitState.SetLabel(r.Status.GitState())
+ r.currentName.SetLabel(r.Status.GetCurrentBranchName())
+ r.currentVersion.SetLabel(r.Status.GetCurrentBranchVersion())
+
+ if r.Status.GitState() == "PERFECT" {
+ r.Hide()
+ }
/*
tags := []string{"%(objectname)", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"}