/
githubmirror
/
lazygit
Обзор
Документация
Войти
/
githubmirror
/
lazygit
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/commands/models/remote.go
27 строк
491 B
Stefan Haller
Add PushUrls field to models.Remote
04 май 2026, 14:09
04 май 2026, 14:09
d0ed65e
Код
Авторство
О чём код?
package models // Remote : A git remote type Remote struct { Name string Urls []string // PushUrls is empty unless the remote has explicit `remote.<name>.pushurl` // entries; when empty, pushes go to Urls. PushUrls []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() }