diff options
| author | Jeff Carr <[email protected]> | 2025-10-05 17:25:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-05 17:25:40 -0500 |
| commit | 7360716b35b452595e93c554d5f342b9f0338ea2 (patch) | |
| tree | 48bfe292ce6ef174abe677ec669cad722d1f7c27 /gitTag.common.go | |
| parent | b76c20d78d97d0e8d81e51ab3084f9d364587bc5 (diff) | |
rm old code
Diffstat (limited to 'gitTag.common.go')
| -rw-r--r-- | gitTag.common.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitTag.common.go b/gitTag.common.go index 5292b01..7535cd9 100644 --- a/gitTag.common.go +++ b/gitTag.common.go @@ -156,13 +156,13 @@ func (repo *Repo) IsRemoteBranch(findname string) bool { return false } -func (repo *Repo) IfRefExists(refname string) bool { +func (repo *Repo) IfRefExists(refname string) *GitTag { for t := range repo.Tags.IterAll() { if _, filename := filepath.Split(t.Refname); filename == refname { - return true + return t } } - return false + return nil } // finds the newest tag. used for deciding if master needs to be published |
