diff options
| -rw-r--r-- | common.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 +} |
