diff options
| author | Jeff Carr <[email protected]> | 2024-12-30 04:41:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-30 04:41:13 -0600 |
| commit | 010a2c6b58feaf89841c3ff4010ed37d679b370e (patch) | |
| tree | d5ef99c6d2dbcd3f29704b1233af6883becf3e8f /common.go | |
| parent | 4446068e1adf072a90039e5293e31da0d7a9b3a3 (diff) | |
shortcut functions to see what branch is checked outv0.0.43
Diffstat (limited to 'common.go')
| -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 +} |
