diff options
| author | Jeff Carr <[email protected]> | 2025-10-20 13:21:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-20 13:21:03 -0500 |
| commit | 69b5038c58e6a8487f22aeaf28eddec5c785c283 (patch) | |
| tree | 72b9910c32a803d8c7f3bffc0f5d7175516d39b0 /patchset.config.go | |
| parent | 2ecc340541f88d4c1cbe437efe79a6fcfdbf5499 (diff) | |
probably better. notsure
Diffstat (limited to 'patchset.config.go')
| -rw-r--r-- | patchset.config.go | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/patchset.config.go b/patchset.config.go index 4957850..be13cd7 100644 --- a/patchset.config.go +++ b/patchset.config.go @@ -1,21 +1,10 @@ package forgepb -import ( - "fmt" - "os" - "regexp" - "strings" - - "github.com/google/uuid" - "go.wit.com/lib/protobuf/gitpb" - "go.wit.com/log" - "google.golang.org/protobuf/proto" -) - +/* func (f *Forge) LoadPatchsets() error { f.Patchsets = NewSets() - data, err := os.ReadFile(f.Config.PatchPB) + data, err := os.ReadFile(config.Get("PatchPB")) if err != nil { return err } @@ -42,7 +31,7 @@ func (f *Forge) InitPatchsets() error { } func (f *Forge) SavePatchsets() error { - filename := f.Config.PatchPB + filename := config.Get("PatchPB") regfile, err := os.OpenFile(filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666) if err != nil { log.Info("SavePatchsets() filename open error:", filename, err) @@ -214,3 +203,4 @@ func (f *Forge) IsPatchApplied(newpatch *Patch) (*gitpb.Repo, bool) { } return nil, false } +*/ |
