From 121e9f08da949533f1004553d1a4b32e5b31c4c4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 Jan 2025 09:06:51 -0600 Subject: print how many patches there were --- .gitignore | 4 +--- patchset.Make.go | 6 +++++- 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 } -- cgit v1.2.3