diff options
| author | Jeff Carr <[email protected]> | 2024-02-22 05:24:31 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-22 05:24:31 -0600 |
| commit | 5aaf02ee3aeafc17a70ddc32619a17ae19a6f1ed (patch) | |
| tree | 83cb3fb39e81527e792e3067403c600ffad453e0 /gitConfig.go | |
| parent | 70e8c98b1ca7adec7fb3352f3eb0ecc5d176619a (diff) | |
actually create the user branches
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 +} |
