1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

chore: rename "Set/Unset upstream" menu to "Upstream Options"

This should already have been done when adding the "View divergence from
upstream" command, but now we're going to add yet another item to the menu that
is unrelated to setting or unsetting the upstream.
This commit is contained in:
AzraelSec
2023-08-27 14:02:13 +02:00
committed by AzraelSec
parent a3cd1e93be
commit 47d422bb8a
16 changed files with 64 additions and 66 deletions

View File

@ -108,7 +108,8 @@ func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*ty
{
Key: opts.GetKey(opts.Config.Branches.SetUpstream),
Handler: self.checkSelected(self.setUpstream),
Description: self.c.Tr.SetUnsetUpstream,
Description: self.c.Tr.ViewBranchUpstreamOptions,
Tooltip: self.c.Tr.ViewBranchUpstreamOptionsTooltip,
OpensMenu: true,
},
}
@ -140,7 +141,7 @@ func (self *BranchesController) GetOnRenderToMain() func() error {
func (self *BranchesController) setUpstream(selectedBranch *models.Branch) error {
return self.c.Menu(types.CreateMenuOptions{
Title: self.c.Tr.Actions.SetUnsetUpstream,
Title: self.c.Tr.BranchUpstreamOptionsTitle,
Items: []*types.MenuItem{
{
LabelColumns: []string{self.c.Tr.ViewDivergenceFromUpstream},