2019-11-17 01:23:06 +02:00
|
|
|
package commands
|
|
|
|
|
|
|
|
// Remote Branch : A git remote branch
|
|
|
|
type RemoteBranch struct {
|
2019-11-17 03:07:36 +02:00
|
|
|
Name string
|
|
|
|
RemoteName string
|
2019-11-17 01:23:06 +02:00
|
|
|
}
|
2020-03-29 05:34:17 +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()
|
|
|
|
}
|
2020-08-22 01:01:14 +02:00
|
|
|
|
|
|
|
func (r *RemoteBranch) ID() string {
|
|
|
|
return r.RefName()
|
|
|
|
}
|
2020-08-22 02:14:53 +02:00
|
|
|
|
|
|
|
func (r *RemoteBranch) Description() string {
|
|
|
|
return r.RefName()
|
|
|
|
}
|