summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 09:06:51 -0600
committerJeff Carr <[email protected]>2025-01-29 12:24:42 -0600
commit121e9f08da949533f1004553d1a4b32e5b31c4c4 (patch)
tree2f3fdc7fcdd87f1029af0feda2061de7bbbb757b
parentdf19b5b8f8b307a01c34162ca59be58474fb2a4b (diff)
print how many patches there were
-rw-r--r--.gitignore4
-rw-r--r--patchset.Make.go6
2 files changed, 6 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index a70fcd6..4af3329 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,3 @@
go.*
-
+*.swp
*.pb.go
-
-forgeConfig/forgeConfig
diff --git a/patchset.Make.go b/patchset.Make.go
index 040a353..e3be08c 100644
--- a/patchset.Make.go
+++ b/patchset.Make.go
@@ -228,8 +228,12 @@ func (f *Forge) submitPatchset(pset *Patchset) error {
}
test := strings.TrimSpace(string(body))
- for _, line := range strings.Split(test, "\n") {
+ lines := strings.Split(test, "\n")
+ count := 0
+ for _, line := range lines {
log.Info("got back:", line)
+ count += 1
}
+ log.Info("Total patches:", count)
return nil
}