From 65b8cd957a152843da6999197346e1a4cf33bb87 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 4 Oct 2025 15:30:27 -0500 Subject: get master hashes --- gitTag.common.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gitTag.common.go') diff --git a/gitTag.common.go b/gitTag.common.go index 2f5c239..df78273 100644 --- a/gitTag.common.go +++ b/gitTag.common.go @@ -29,6 +29,11 @@ func (repo *Repo) ActualGetUserHash() string { return repo.GetLocalHash(s) } +func (repo *Repo) ActualGetMasterHash() (string, string) { + s := repo.GetMasterBranchName() + return repo.GetLocalHash(s), repo.GetRemoteHash(s) +} + func (repo *Repo) GetLocalHash(brname string) string { refname := "refs/heads/" + brname for tag := range repo.Tags.IterAll() { -- cgit v1.2.3