summaryrefslogtreecommitdiff
path: root/gitTag.common.go
diff options
context:
space:
mode:
Diffstat (limited to 'gitTag.common.go')
-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() {