diff options
| -rw-r--r-- | gitTag.common.go | 5 |
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() { |
