diff options
Diffstat (limited to 'patchset.Make.go')
| -rw-r--r-- | patchset.Make.go | 12 |
1 files changed, 6 insertions, 6 deletions
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 <original_commit_hash> | git patch-id // git cat-file -p <commit_hash> | 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) |
