mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-14 11:23:09 +02:00
20 lines
332 B
Go
20 lines
332 B
Go
package commands
|
|
|
|
// Remote Branch : A git remote branch
|
|
type RemoteBranch struct {
|
|
Name string
|
|
RemoteName string
|
|
}
|
|
|
|
func (r *RemoteBranch) FullName() string {
|
|
return r.RemoteName + "/" + r.Name
|
|
}
|
|
|
|
func (r *RemoteBranch) RefName() string {
|
|
return r.FullName()
|
|
}
|
|
|
|
func (r *RemoteBranch) ID() string {
|
|
return r.RefName()
|
|
}
|