diff options
| author | Jeff Carr <[email protected]> | 2025-09-26 23:44:19 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-26 23:44:19 -0500 |
| commit | 3718ebe168dc7c4ce553bdc9b4e19b4b7bfe0d33 (patch) | |
| tree | f51269dfba05952f6ead1f0e604470c0fab4e3c2 /gitTag.common.go | |
| parent | 5cfc8d38505a1f17c14cebef8f8e1b393f799dda (diff) | |
add Tags.Master & Tags.Develv0.0.140
Diffstat (limited to 'gitTag.common.go')
| -rw-r--r-- | gitTag.common.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gitTag.common.go b/gitTag.common.go index 0bbd70c..2f5c239 100644 --- a/gitTag.common.go +++ b/gitTag.common.go @@ -51,6 +51,17 @@ func (repo *Repo) GetRemoteHash(brname string) string { return "" } +func (repo *Repo) GetRemoteTag(brname string) *GitTag { + refname := "refs/remotes/origin/" + brname + for tag := range repo.Tags.IterAll() { + // log.Info("repo tag", tag.GetHash(), tag.GetRefname()) + if tag.GetRefname() == refname { + return tag + } + } + return nil +} + // this is the correct way. uses 'git show-ref' func (repo *Repo) IsBranchRemote(brname string) bool { if repo.Tags == nil { |
