From 7360716b35b452595e93c554d5f342b9f0338ea2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 5 Oct 2025 17:25:40 -0500 Subject: rm old code --- gitTag.common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gitTag.common.go') 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 -- cgit v1.2.3