add CheckoutDevel()
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
35e03959ab
commit
b694fc2fe2
11
git.go
11
git.go
|
@ -161,6 +161,17 @@ func (rs *RepoStatus) CheckoutMaster() bool {
|
||||||
return true
|
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) {
|
func (rs *RepoStatus) checkoutBranch(level string, branch string) {
|
||||||
if rs.CheckDirty() {
|
if rs.CheckDirty() {
|
||||||
log.Log(INFO, "checkoutBranch() checkDirty() == true for repo", rs.realPath.String(), "looking for branch:", branch)
|
log.Log(INFO, "checkoutBranch() checkDirty() == true for repo", rs.realPath.String(), "looking for branch:", branch)
|
||||||
|
|
Loading…
Reference in New Issue