diff options
Diffstat (limited to 'gitTag.common.go')
| -rw-r--r-- | gitTag.common.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gitTag.common.go b/gitTag.common.go index 2c83da1..0bbd70c 100644 --- a/gitTag.common.go +++ b/gitTag.common.go @@ -19,6 +19,16 @@ func (repo *Repo) ActualDevelHash() string { return "" } +func (repo *Repo) ActualGetDevelHash() string { + s := repo.GetDevelBranchName() + return repo.GetLocalHash(s) +} + +func (repo *Repo) ActualGetUserHash() string { + s := repo.GetUserBranchName() + return repo.GetLocalHash(s) +} + func (repo *Repo) GetLocalHash(brname string) string { refname := "refs/heads/" + brname for tag := range repo.Tags.IterAll() { |
