shortcut functions to see what branch is checked out
This commit is contained in:
parent
4446068e1a
commit
010a2c6b58
14
common.go
14
common.go
|
@ -32,3 +32,17 @@ func (repo *Repo) SetGoPrimitive(b bool) {
|
||||||
}
|
}
|
||||||
repo.GoInfo.GoPrimitive = b
|
repo.GoInfo.GoPrimitive = b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (repo *Repo) IsUserBranch() bool {
|
||||||
|
if repo.GetCurrentBranchName() == repo.GetUserBranchName() {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (repo *Repo) IsMasterBranch() bool {
|
||||||
|
if repo.GetCurrentBranchName() == repo.GetMasterBranchName() {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue