summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 06:31:24 -0500
committerJeff Carr <[email protected]>2025-09-11 06:31:24 -0500
commit363460290d465cbf23f88097d4406f679e18c675 (patch)
tree06863ead12993b8fdf5ffebf70f6ebdccc0991b9 /main.go
parent309fcffc867f321f02885f809fecac06edf1ed06 (diff)
finally detecting state changes again
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index c7db9d7..7606bd5 100644
--- a/main.go
+++ b/main.go
@@ -43,6 +43,15 @@ func getVersion(repo *gitpb.Repo, name string) string {
return strings.TrimSpace(output)
}
+func reloadCheck(repo *gitpb.Repo) error {
+ if err := repo.ReloadCheck(); err != nil {
+ log.Info("need to reload", repo.FullPath)
+ configSave = true
+ return err
+ }
+ return nil
+}
+
func main() {
me = new(mainType)
prep.Bash(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(argv)
@@ -50,6 +59,7 @@ func main() {
me.pp = arg.MustParse(&argv)
me.forge = forgepb.Init()
+ me.forge.RillRepos(reloadCheck)
me.forge.ScanGoSrc()
// initialize patches