shortcut functions to see what branch is checked out

This commit is contained in:
Jeff Carr 2024-12-30 04:41:13 -06:00
parent 4446068e1a
commit 010a2c6b58
1 changed files with 14 additions and 0 deletions

View File

@ -32,3 +32,17 @@ func (repo *Repo) SetGoPrimitive(b bool) {
}
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
}