diff options
| author | Jeff Carr <[email protected]> | 2025-01-18 11:10:53 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-18 11:10:53 -0600 |
| commit | 4444e942ea0c179f94ef4baa8d8dc268f807a8f4 (patch) | |
| tree | 44609e499f67f0872c7c220e0b9b57f05c4b361f | |
| parent | 335531e0fbc2c99051723e659ac99624bb09690c (diff) | |
rill dirty checkv0.22.48
| -rw-r--r-- | doDirty.go | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -32,17 +32,27 @@ func straightCheckDirty() int { return count } +func doCheckDirty(repo *gitpb.Repo) error { + repo.CheckDirty() + return nil +} + func doCheckDirtyAndConfigSave() { start := straightCheckDirty() - now := time.Now() // log.Info("before findAll()") - all := me.found.All() - for all.Scan() { - repo := all.Next() - repo.CheckDirty() - } + /* + all := me.found.All() + for all.Scan() { + repo := all.Next() + repo.CheckDirty() + } + */ + // this might work? + now := time.Now() + me.forge.RillFuncError(20, 10, doCheckDirty) end := straightCheckDirty() log.Printf("dirty check (%d dirty repos) (%d total repos) took:%s\n", end, me.found.Len(), shell.FormatDuration(time.Since(now))) + if start != end { // todo: use internal forgepb configsave flag. should work? me.forge.ConfigSave() |
