diff options
Diffstat (limited to 'gitConfig.go')
| -rw-r--r-- | gitConfig.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gitConfig.go b/gitConfig.go index e49c2b7..519d294 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -249,3 +249,12 @@ func (rs *RepoStatus) processBranch(branch string) { rs.gitConfig.versions[newhash] = name log.Log(INFO, " hash: version", name) } + +func (rs *RepoStatus) BranchExists(branch string) bool { + hash, ok := rs.gitConfig.hashes[branch] + if ok { + log.Log(REPOWARN, rs.Path(), "found branch", branch, hash) + return true + } + return false +} |
