summaryrefslogtreecommitdiff
path: root/doDirty.go
diff options
context:
space:
mode:
Diffstat (limited to 'doDirty.go')
-rw-r--r--doDirty.go17
1 files changed, 4 insertions, 13 deletions
diff --git a/doDirty.go b/doDirty.go
index cdca518..0380bd0 100644
--- a/doDirty.go
+++ b/doDirty.go
@@ -14,12 +14,11 @@ import (
func doDirty() {
findAll() // select all the repos
doCheckDirtyAndConfigSave()
- me.found = new(gitpb.Repos)
- findDirty()
+ found := findDirty()
if argv.Verbose {
- me.forge.PrintHumanTableDirty(me.found)
+ me.forge.PrintHumanTableDirty(found)
} else {
- me.forge.PrintHumanTable(me.found)
+ me.forge.PrintHumanTable(found)
}
}
@@ -51,15 +50,7 @@ func doCheckDirty(repo *gitpb.Repo) error {
func doCheckDirtyAndConfigSave() {
start := straightCheckDirty()
- // log.Info("before findAll()")
- /*
- all := me.found.All()
- for all.Scan() {
- repo := all.Next()
- repo.CheckDirty()
- }
- */
- // this might work?
+
now := time.Now()
me.forge.RillFuncError(doCheckDirty)
end := straightCheckDirty()