diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 00:13:17 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 00:13:17 -0500 |
| commit | 9a32a7fe0b010cb1614dfd16197eaa23f196d722 (patch) | |
| tree | 0646bdc2c2119163e4370b49d670d972f08d18b8 /doDirty.go | |
| parent | 7081a04d5838ba33747208123f3cacfe2b63da0d (diff) | |
rm junk
Diffstat (limited to 'doDirty.go')
| -rw-r--r-- | doDirty.go | 42 |
1 files changed, 0 insertions, 42 deletions
@@ -14,45 +14,3 @@ func doDirty() { me.forge.PrintHumanTable(found) } } - -/* -func straightCheckDirty() int { - var count int - // var total int - // now := time.Now() - for repo := range me.forge.Repos.IterAll() { - // total += 1 - if repo.IsDirty() { - count += 1 - } - } - // log.Printf("rill dirty check (%d dirty repos) (%d total repos) took:%s\n", count, total, shell.FormatDuration(time.Since(now))) - return count -} - -func doCheckDirty(repo *gitpb.Repo) error { - repo.CheckDirty() - // reset these in here for now - if repo.GetTargetVersion() != "" { - repo.TargetVersion = "" - me.forge.SetConfigSave(true) - } - return nil -} - -// recheck every repo's dirty state according to 'git' -func doCheckDirtyAndConfigSave() { - start := straightCheckDirty() - - now := time.Now() - me.forge.RillFuncError(doCheckDirty) - end := straightCheckDirty() - log.Printf("dirty check (%d dirty repos) (%d total repos) took:%s\n", end, me.forge.Repos.Len(), shell.FormatDuration(time.Since(now))) - - if start != end { - // todo: use internal forgepb configsave flag. should work? - me.forge.SetConfigSave(true) - me.forge.ConfigSave() - } -} -*/ |
