diff options
| author | Jeff Carr <[email protected]> | 2024-02-16 20:37:23 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-16 20:37:23 -0600 |
| commit | 63a79121e3667ed84432b7bc9e3239cb62c059c8 (patch) | |
| tree | 10809e99bdd17512d9f8e050c69c894269be9796 /scan.go | |
| parent | c253a30fb61cdc956e1cefb8296e34bf74ddf90c (diff) | |
trying to create branches
Diffstat (limited to 'scan.go')
| -rw-r--r-- | scan.go | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -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) |
