()
| 44 | } |
| 45 | |
| 46 | func (b *Branch) IsMaster() bool { |
| 47 | masterName := b.Repo.MasterBranch().ShortName() |
| 48 | return b.ShortName() == masterName |
| 49 | } |
| 50 | |
| 51 | func (b *Branch) IsRemote() bool { |
| 52 | return strings.HasPrefix(b.Name, "refs/remotes") |
no test coverage detected