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

20 lines
332 B
Go
Raw Normal View History

2019-11-17 01:23:06 +02:00
package commands
// Remote Branch : A git remote branch
type RemoteBranch struct {
Name string
RemoteName string
2019-11-17 01:23:06 +02:00
}
func (r *RemoteBranch) FullName() string {
return r.RemoteName + "/" + r.Name
}
2020-08-19 14:57:22 +02:00
func (r *RemoteBranch) RefName() string {
return r.FullName()
}
func (r *RemoteBranch) ID() string {
return r.RefName()
}