summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-04 15:30:27 -0500
committerJeff Carr <[email protected]>2025-10-04 15:30:27 -0500
commit65b8cd957a152843da6999197346e1a4cf33bb87 (patch)
treeae39a6fd184929d9c9c4835db7d169437ed8c269
parent1ddedc1fa552ab543533e8dfa4dcd16ab3b38da6 (diff)
get master hashesv0.0.146
-rw-r--r--gitTag.common.go5
1 files changed, 5 insertions, 0 deletions
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() {