summaryrefslogtreecommitdiff
path: root/repo.new.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-29 21:51:30 -0600
committerJeff Carr <[email protected]>2024-11-29 21:51:30 -0600
commit3d260a0219841f4835d6a0d0e370bde483f35d08 (patch)
treeb6e3b09004109581d618613d9c72d2049656074b /repo.new.go
parent4a79cccffd6cd20e42271eada567c4b8c0edc2f4 (diff)
updates for autogenpb
Diffstat (limited to 'repo.new.go')
-rw-r--r--repo.new.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/repo.new.go b/repo.new.go
index 1480051..60dd263 100644
--- a/repo.new.go
+++ b/repo.new.go
@@ -36,7 +36,7 @@ func (all *Repos) NewGoPath(basepath string, gopath string) (*Repo, error) {
// newr.UpdateGit()
newr.UpdateGitTags()
- all.add(&newr)
+ all.AppendUniqueGoPath(&newr)
return &newr, nil
}
@@ -73,3 +73,15 @@ func (repo *Repo) isPrimativeGoMod() (bool, error) {
}
return true, nil
}
+
+func (repo *Repo) SetMasterBranchName(bname string) {
+ repo.MasterBranchName = bname
+}
+
+func (repo *Repo) SetDevelBranchName(bname string) {
+ repo.DevelBranchName = bname
+}
+
+func (repo *Repo) SetUserBranchName(bname string) {
+ repo.UserBranchName = bname
+}