1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg/commands/branch.go

19 lines
402 B
Go
Raw Normal View History

2018-08-13 12:26:02 +02:00
package commands
2018-08-13 12:26:02 +02:00
// Branch : A git branch
// duplicating this for now
type Branch struct {
2020-03-26 11:29:35 +02:00
Name string
// the displayname is something like '(HEAD detached at 123asdf)', whereas in that case the name would be '123asdf'
DisplayName string
Recency string
Pushables string
Pullables string
UpstreamName string
2020-03-19 03:04:17 +02:00
Head bool
}
2020-08-19 14:57:22 +02:00
func (b *Branch) RefName() string {
return b.Name
}