From 81fc15e743f0c2acfbf2520a9ed2bfbcba431b12 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 23 Sep 2025 07:44:07 -0500 Subject: less confusing patch .proto files --- patchset.Make.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'patchset.Make.go') diff --git a/patchset.Make.go b/patchset.Make.go index 33a9207..fe8df83 100644 --- a/patchset.Make.go +++ b/patchset.Make.go @@ -22,13 +22,13 @@ func (p *Patches) HttpPostVerbose(baseURL string, route string) (*Patches, *http return p.HttpPost(baseURL, route) } -func (p *Patchsets) HttpPostVerbose(baseURL string, route string) (*Patchsets, *httppb.HttpRequest, error) { +func (p *Sets) HttpPostVerbose(baseURL string, route string) (*Sets, *httppb.HttpRequest, error) { p.PrintTable() return p.HttpPost(baseURL, route) } -func newPatchset(name string) *Patchset { - pset := new(Patchset) +func newPatchset(name string) *Set { + pset := new(Set) pset.Name = name pset.Ctime = timestamppb.New(time.Now()) pset.Uuid = uuid.New().String() @@ -39,7 +39,7 @@ func newPatchset(name string) *Patchset { // creates a patchset // works from the user branches against the devel branches -func (f *Forge) MakeDevelPatchSet(name string) (*Patchset, error) { +func (f *Forge) MakeDevelPatchSet(name string) (*Set, error) { pset := newPatchset(name) if os.Getenv("GIT_AUTHOR_NAME") == "" { return nil, fmt.Errorf("GIT_AUTHOR_NAME not set") @@ -85,7 +85,7 @@ func (f *Forge) MakeDevelPatchSet(name string) (*Patchset, error) { return pset, nil } -func (pset *Patchset) makePatchSetNew(repo *gitpb.Repo) error { +func (pset *Set) makePatchSetNew(repo *gitpb.Repo) error { startBranch := pset.StartBranchName endBranch := pset.EndBranchName repoDir := filepath.Join(pset.TmpDir, repo.GetGoPath()) @@ -134,7 +134,7 @@ func (pset *Patchset) makePatchSetNew(repo *gitpb.Repo) error { // git show | git patch-id // git cat-file -p | grep tree // process each file in pDir/ -func (p *Patchset) addPatchFiles(repo *gitpb.Repo) error { +func (p *Set) addPatchFiles(repo *gitpb.Repo) error { psetDir := repo.GetGoPath() tmpDir := p.TmpDir // log.Info("ADD PATCH FILES ADDED DIR", tmpDir) -- cgit v1.2.3