summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-30 04:41:13 -0600
committerJeff Carr <[email protected]>2024-12-30 04:41:13 -0600
commit010a2c6b58feaf89841c3ff4010ed37d679b370e (patch)
treed5ef99c6d2dbcd3f29704b1233af6883becf3e8f /common.go
parent4446068e1adf072a90039e5293e31da0d7a9b3a3 (diff)
shortcut functions to see what branch is checked outv0.0.43
Diffstat (limited to 'common.go')
-rw-r--r--common.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/common.go b/common.go
index fb17679..a9bc736 100644
--- a/common.go
+++ b/common.go
@@ -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
+}