mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Expose PushUrls to custom commands
This commit is contained in:
parent
6f1c57b604
commit
127dd9d325
|
|
@ -76,6 +76,7 @@ type RemoteBranch struct {
|
|||
type Remote struct {
|
||||
Name string
|
||||
Urls []string
|
||||
PushUrls []string
|
||||
Branches []*RemoteBranch
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,8 +116,9 @@ func remoteShimFromModelRemote(remote *models.Remote) *Remote {
|
|||
}
|
||||
|
||||
return &Remote{
|
||||
Name: remote.Name,
|
||||
Urls: remote.Urls,
|
||||
Name: remote.Name,
|
||||
Urls: remote.Urls,
|
||||
PushUrls: remote.PushUrls,
|
||||
Branches: lo.Map(remote.Branches, func(branch *models.RemoteBranch, _ int) *RemoteBranch {
|
||||
return remoteBranchShimFromModelRemoteBranch(branch)
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue