summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-18 22:02:07 -0600
committerJeff Carr <[email protected]>2024-12-18 22:02:07 -0600
commit9adb650b3ed1a64a5207da04fe3c7e80b10cddd6 (patch)
tree7a042622e7288c77e50d966b26a36ecf1406fa21 /main.go
parente30ef08c119ed4e539d3aac74c9d6010a95c9423 (diff)
add --dirtyv0.22.25
Diffstat (limited to 'main.go')
-rw-r--r--main.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/main.go b/main.go
index 92704e0..562565d 100644
--- a/main.go
+++ b/main.go
@@ -48,6 +48,27 @@ func main() {
okExit("")
}
+ if argv.Dirty {
+ all := me.forge.Repos.SortByFullPath()
+ for all.Scan() {
+ repo := all.Next()
+ dirty := repo.IsDirty()
+ if repo.CheckDirty() {
+ me.found.AppendUniqueGoPath(repo)
+ if !dirty {
+ configSave = true
+ }
+ } else {
+ if dirty {
+ configSave = true
+ }
+ }
+ }
+ doCobol()
+ me.forge.SetConfigSave(configSave)
+ okExit("")
+ }
+
/*
// var count int
all := me.forge.Repos.SortByFullPath()