add CheckoutDevel()

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-10 16:32:39 -06:00
parent 35e03959ab
commit b694fc2fe2
1 changed files with 11 additions and 0 deletions

11
git.go
View File

@ -161,6 +161,17 @@ func (rs *RepoStatus) CheckoutMaster() bool {
return true
}
func (rs *RepoStatus) CheckoutDevel() bool {
devel := rs.develWorkingName.String()
// user := rs.userWorkingName.String()
log.Log(INFO, "checkoutBranch", devel)
rs.checkoutBranch("devel", devel)
// log.Log(INFO, "checkoutBranch", user)
// rs.checkoutBranch("user", user)
return true
}
func (rs *RepoStatus) checkoutBranch(level string, branch string) {
if rs.CheckDirty() {
log.Log(INFO, "checkoutBranch() checkDirty() == true for repo", rs.realPath.String(), "looking for branch:", branch)