summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scanRepoDir.go4
-rw-r--r--structs.go2
2 files changed, 5 insertions, 1 deletions
diff --git a/scanRepoDir.go b/scanRepoDir.go
index 5f65cb6..cfadf9a 100644
--- a/scanRepoDir.go
+++ b/scanRepoDir.go
@@ -19,6 +19,10 @@ func reloadCheck(repo *gitpb.Repo) error {
return nil
}
+func (f *Forge) Reload() map[string]*RillStats {
+ return f.RillRepos(reloadCheck)
+}
+
func (f *Forge) TestScan() error {
f.Repos = gitpb.NewRepos()
dirs, err := gitDirectoriesNew(f.Config.ReposDir)
diff --git a/structs.go b/structs.go
index da55140..b96e676 100644
--- a/structs.go
+++ b/structs.go
@@ -8,7 +8,7 @@ import (
// maybe an interface someday?
type Forge struct {
- once sync.Once // one-time initialized data
+ once sync.Once // one-time initialized data
Config *ForgeConfigs // config repos for readonly, private, etc
Repos *gitpb.Repos // the repo protobufs
Patchsets *Sets // patches that are in progress