()
| 14 | } |
| 15 | |
| 16 | func (b *Branch) ShortName() string { |
| 17 | reg := regexp.MustCompile("^refs/(remotes/)?.+?/") |
| 18 | return reg.ReplaceAllString(b.Name, "") |
| 19 | } |
| 20 | |
| 21 | func (b *Branch) LongName() string { |
| 22 | reg := regexp.MustCompile("^refs/(remotes/)?") |
no outgoing calls