summaryrefslogtreecommitdiff
path: root/gitTag.common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-05 13:24:46 -0500
committerJeff Carr <[email protected]>2025-10-05 13:24:46 -0500
commitb76c20d78d97d0e8d81e51ab3084f9d364587bc5 (patch)
treef92f2b04f64dba9c4ec75aea3663444ae3fbbb00 /gitTag.common.go
parent4ff004a792d058fad3b8cb9a9d5c83f7d1144243 (diff)
general check for anything that matchesv0.0.150
Diffstat (limited to 'gitTag.common.go')
-rw-r--r--gitTag.common.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/gitTag.common.go b/gitTag.common.go
index 20fe31a..5292b01 100644
--- a/gitTag.common.go
+++ b/gitTag.common.go
@@ -156,6 +156,15 @@ func (repo *Repo) IsRemoteBranch(findname string) bool {
return false
}
+func (repo *Repo) IfRefExists(refname string) bool {
+ for t := range repo.Tags.IterAll() {
+ if _, filename := filepath.Split(t.Refname); filename == refname {
+ return true
+ }
+ }
+ return false
+}
+
// finds the newest tag. used for deciding if master needs to be published
func (repo *Repo) FindLastTag() string {
var newest *GitTag