summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-25 23:17:24 -0600
committerJeff Carr <[email protected]>2024-12-25 23:17:24 -0600
commitbdaa40c51fe98ff167d2c05a0b21600c95185e67 (patch)
tree7855cd54d052978074cff2ef933c9a7f8cd1ecb5 /main.go
parent4ec714a678efea22b93833db4d85ac637c5c47c8 (diff)
try to push patchsetsv0.22.28
Diffstat (limited to 'main.go')
-rw-r--r--main.go54
1 files changed, 26 insertions, 28 deletions
diff --git a/main.go b/main.go
index 8b9672e..330bc8e 100644
--- a/main.go
+++ b/main.go
@@ -84,38 +84,36 @@ func main() {
// now, do something to all of them (or just print out a table of them)
var done bool = false
- if argv.Do != nil {
- if argv.Do.Dirty {
- doCheckDirty()
- okExit("")
- done = true
- }
+ if argv.Dirty {
+ doCheckDirty()
+ okExit("")
+ done = true
+ }
- if argv.Do.Scan {
- doScan()
- done = true
- }
+ if argv.Scan {
+ doScan()
+ done = true
+ }
- if argv.Do.GitPull {
- doGitPull()
- done = true
- }
+ if argv.GitPull {
+ doGitPull()
+ done = true
+ }
- if argv.Do.GitReset {
- doGitReset()
- done = true
- }
+ if argv.GitReset {
+ doGitReset()
+ done = true
+ }
- if argv.Do.List {
- // print out the repos
- doCobol()
- done = true
- }
- if argv.Do.PatchSet != "" {
- sendDevelDiff(argv.Do.PatchSet)
- // sendMasterDiff()
- okExit("patches")
- }
+ if argv.List {
+ // print out the repos
+ doCobol()
+ done = true
+ }
+ if argv.PatchSet != "" {
+ sendDevelDiff(argv.PatchSet)
+ // sendMasterDiff()
+ okExit("patches")
}
if argv.ListPatchSet {