diff options
| author | Jeff Carr <[email protected]> | 2025-10-04 15:30:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-04 15:30:27 -0500 |
| commit | 65b8cd957a152843da6999197346e1a4cf33bb87 (patch) | |
| tree | ae39a6fd184929d9c9c4835db7d169437ed8c269 | |
| parent | 1ddedc1fa552ab543533e8dfa4dcd16ab3b38da6 (diff) | |
get master hashesv0.0.146
| -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() { |
