summaryrefslogtreecommitdiff
path: root/applyPatch.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-05 02:01:15 -0600
committerJeff Carr <[email protected]>2025-01-05 02:01:15 -0600
commit026e0cde90ed89a51b97d163ba63339439cbe999 (patch)
treebbfc62800fa58286f706cd630be235a1c5e800d1 /applyPatch.go
parent18ee541f89be2e9f9a91c54873da87885e8ffdf5 (diff)
button to dump last patch info
Diffstat (limited to 'applyPatch.go')
-rw-r--r--applyPatch.go23
1 files changed, 15 insertions, 8 deletions
diff --git a/applyPatch.go b/applyPatch.go
index a0ddbab..d4eec08 100644
--- a/applyPatch.go
+++ b/applyPatch.go
@@ -11,6 +11,21 @@ import (
"go.wit.com/log"
)
+func dumpPatchset(pset *forgepb.Patchs) error {
+ log.Info("applyPatches() NAME", pset.Name)
+ log.Info("applyPatches() COMMENT", pset.Comment)
+ log.Info("applyPatches() GIT_AUTHOR_NAME", pset.GetGitAuthorName())
+ log.Info("applyPatches() GIT_AUTHOR_EMAIL", pset.GetGitAuthorEmail())
+ all := pset.SortByFilename()
+ for all.Scan() {
+ p := all.Next()
+ // log.Info("pset filename FILENAME IS REAL?", p.Filename, pset.Name, pset.Comment)
+ // basepath, filename := filepath.Split(p.Filename)
+ log.Info("pset p.Filename", p.Filename)
+ }
+ return nil
+}
+
func applyPatches(pset *forgepb.Patchs) error {
var everythingworked bool = true
tmpdir, err := os.MkdirTemp("", "forge")
@@ -77,11 +92,3 @@ func handleBytes(bytes []byte) (*forgepb.Patchs, error) {
}
return pset, nil
}
-
-func doit(bytes []byte) error {
- pset, err := handleBytes(bytes)
- if err != nil {
- return err
- }
- return applyPatches(pset)
-}