summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-08 02:40:06 -0600
committerJeff Carr <[email protected]>2025-01-08 02:40:06 -0600
commit8e2a557b25a82ab6a61fa71644b6f78d7c9de77f (patch)
tree68ed71334db4bd1d4323344780a12686328afbc4
parent06ad9227807c4a2a21c0b1a4f053b36aacf993cf (diff)
this code probably isn't needed, but it does work
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index d90e574..0563fc1 100644
--- a/main.go
+++ b/main.go
@@ -113,6 +113,17 @@ func main() {
if argv.Show != "" {
repo := me.forge.FindByGoPath(argv.Show)
me.forge.HumanPrintRepo(repo)
+ // newt := repo.Times.LastUpdate.AsTime()
+ // oldt := repo.Times.MtimeHead.AsTime()
+ if repo.Times.LastUpdate == nil {
+ log.Info("SHOULD RUN Reload() here")
+ repo.Reload()
+ me.forge.HumanPrintRepo(repo)
+ } else {
+ if repo.Times.LastUpdate.Seconds < repo.Times.MtimeHead.Seconds {
+ log.Info("SHOULD RUN Reload() here")
+ }
+ }
okExit("")
}