summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-16 20:37:23 -0600
committerJeff Carr <[email protected]>2024-02-16 20:37:23 -0600
commit63a79121e3667ed84432b7bc9e3239cb62c059c8 (patch)
tree10809e99bdd17512d9f8e050c69c894269be9796 /scan.go
parentc253a30fb61cdc956e1cefb8296e34bf74ddf90c (diff)
trying to create branches
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go19
1 files changed, 8 insertions, 11 deletions
diff --git a/scan.go b/scan.go
index 0e05cc5..6b6b6b8 100644
--- a/scan.go
+++ b/scan.go
@@ -13,7 +13,6 @@ func scanRepositories() {
log.Info("Scanned", me.summary.totalOL.String(), "repositories. todo: count/show changes")
t := timeFunction(func() {
for _, repo := range me.allrepos {
- repo.status.UpdateNew()
repo.newScan()
}
})
@@ -26,15 +25,11 @@ func (r *repo) newScan() bool {
log.Warn("repo.status = nil. not initialized for some reason")
return false
}
- // r.scan()
- /*
- if repostatus.VerifyLocalGoRepo(r.getPath()) {
- log.Verbose("repo actually exists", r.getPath())
- } else {
- log.Warn("repo does not exist", r.getPath())
- return false
- }
- */
+
+ // first run the repostatus update
+ r.status.UpdateNew()
+
+ // now read those values and display them in our table
mname := r.status.GetMasterBranchName()
mver := r.status.GetMasterVersion()
mver = mver + " (" + mname + ")"
@@ -63,7 +58,9 @@ func (r *repo) newScan() bool {
if c, ok := r.status.Changed(); ok {
c := strings.TrimSpace(c)
- log.Warn("repo", r.status.Path(), "changed", c)
+ for _, line := range strings.Split(c, "\n") {
+ log.Info(r.status.Path(), line)
+ }
}
status := r.status.GetStatus()
r.dirtyLabel.SetLabel(status)