summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-29 01:24:20 -0600
committerJeff Carr <[email protected]>2024-11-29 01:24:20 -0600
commit7d5786782cff69a431d9f6c75fa94a23c90805f0 (patch)
treedc666e7a4c498bbfbd4584837df12e8c8166d521 /scan.go
parent43385fcb43311a921e048f02db92a19d229f3d11 (diff)
remove mirroring. rethink this after refactor
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go29
1 files changed, 28 insertions, 1 deletions
diff --git a/scan.go b/scan.go
index 0c076c0..6182ef7 100644
--- a/scan.go
+++ b/scan.go
@@ -36,7 +36,7 @@ func (r *RepoList) ScanRepositories() (int, string) {
me.shownCount.SetText(tmp)
me.duration.SetText(s)
- log.Log(REPO, "Scanned", i, "repositories.", total, "changes in", s)
+ log.Info("Scanned", i, "repositories.", total, "changes in", s)
return i, s
}
@@ -50,6 +50,33 @@ func (r *RepoRow) NewScan() int {
// run the repostatus update
r.Status.Update()
+ if r.lastTag != nil {
+ if r.pb != nil {
+ r.lastTag.SetLabel(r.pb.GetLastTag())
+ } else {
+ log.Info("r.pb was nil")
+ }
+ }
+
+// r.masterVersion.SetLabel(r.pb.GetMasterVersion())
+// r.develVersion.SetLabel(r.pb.GetDevelVersion())
+// r.userVersion.SetLabel(r.pb.GetUserVersion())
+// r.gitState.SetLabel(r.Status.GetState())
+// r.currentName.SetLabel(r.Status.CurrentBranchName())
+// r.currentVersion.SetLabel(r.Status.CurrentBranchVersion())
+
+ 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