File: remote.go

package info (click to toggle)
lazygit 0.50.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,808 kB
  • sloc: sh: 128; makefile: 76
file content (24 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package models

// Remote : A git remote
type Remote struct {
	Name     string
	Urls     []string
	Branches []*RemoteBranch
}

func (r *Remote) RefName() string {
	return r.Name
}

func (r *Remote) ID() string {
	return r.RefName()
}

func (r *Remote) URN() string {
	return "remote-" + r.ID()
}

func (r *Remote) Description() string {
	return r.RefName()
}