summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-11 11:17:10 -0500
committerJeff Carr <[email protected]>2025-10-11 11:17:10 -0500
commit63902ff78264507562b6bc31026aead01f3ae331 (patch)
tree32bc969646df76227cde96abf8c100b2c587f973
parentc8999c2213d8c18783eb99136ac1dd312a83bdb0 (diff)
okay nowv0.25.79
-rw-r--r--argv.go1
-rw-r--r--doPatch.go7
2 files changed, 8 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index 2ac11ad..ec60872 100644
--- a/argv.go
+++ b/argv.go
@@ -108,6 +108,7 @@ type CleanDevelCmd struct {
type PatchCmd struct {
Apply bool `arg:"--apply" help:"attempt to apply any new patches"`
+ Show bool `arg:"--show" help:"show the current patches"`
Submit bool `arg:"--resubmit" help:"resubmit your git commits"`
}
diff --git a/doPatch.go b/doPatch.go
index 8e2afbc..ef43095 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -51,6 +51,13 @@ func doPatch() (string, error) {
me.curpatches.Save()
}
+ // just show the table and exit
+ if argv.Patch.Show {
+ footer := me.curpatches.PrintTable()
+ return "all current patches: " + footer, nil
+ }
+
+ // send them onward again
if argv.Patch.Submit {
return doPatchSubmit()
}