diff options
Diffstat (limited to 'applyPatch.go')
| -rw-r--r-- | applyPatch.go | 23 |
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) -} |
