summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 21:47:19 -0500
committerJeff Carr <[email protected]>2025-09-11 21:47:19 -0500
commit6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (patch)
tree20a493a737b3343208ae5be6fe298a8f36d4a8c2 /init.go
parentef00352a0bc0616f2b55554a3ac6351d0edba25f (diff)
rm full scan stuff
Diffstat (limited to 'init.go')
-rw-r--r--init.go37
1 files changed, 0 insertions, 37 deletions
diff --git a/init.go b/init.go
index ca5db21..fbb6210 100644
--- a/init.go
+++ b/init.go
@@ -47,40 +47,6 @@ func InitByAppname(argname string) *Forge {
return f
}
-/*
-func (f *Forge) InitScan() {
- if f.hasFullScan {
- // duplicate time checking below. which one to keep?
- if f.FullScanAge() > time.Minute {
- log.Log(INFO, "forgepb.Scan() skipping scan. been run a minute ago", f.FullScanAge())
- return
- }
- }
-
- now := time.Now()
- start := f.Repos.Len()
- f.ScanGoSrc()
- f.FullScanRan()
- end := f.Repos.Len()
- if (end - start) == 0 {
- log.Log(INFO, "forgepb.Scan() Scan did not find new git repositories. Total =", end)
- if f.FullScanAge() > time.Minute {
- f.rillUpdate(20, 10)
- }
- } else {
- log.Log(INFO, "forgepb.Scan() Scan found", end-start, "new git repositories. Total =", end)
- f.rillUpdate(20, 10)
- }
-
- if f.configSave {
- // taking this out to debug Marshal() panic
- f.ConfigSave()
- f.configSave = false
- }
- log.Log(INFO, "update() check took", shell.FormatDuration(time.Since(now)))
-}
-*/
-
func initFromConfig(cfg *ForgeConfigs) *Forge {
f := new(Forge)
f.Config = cfg
@@ -91,9 +57,6 @@ func initFromConfig(cfg *ForgeConfigs) *Forge {
f.Repos = gitpb.NewRepos()
f.Repos.ConfigLoad()
- if f.Repos.HasFullScan {
- f.hasFullScan = true
- }
// init the Patchsets
f.Patchsets = NewPatchsets()