mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Remove target branch from title of rebase menu
Put it into the individual menu items instead. Again, this is necessary because we are going to add another entry to the menu that is independent of the selected branch.
This commit is contained in:
		| @@ -241,7 +241,9 @@ func (self *MergeAndRebaseHelper) RebaseOntoRef(ref string) error { | ||||
| 	} | ||||
| 	menuItems := []*types.MenuItem{ | ||||
| 		{ | ||||
| 			Label:          self.c.Tr.SimpleRebase, | ||||
| 			Label: utils.ResolvePlaceholderString(self.c.Tr.SimpleRebase, | ||||
| 				map[string]string{"ref": ref}, | ||||
| 			), | ||||
| 			Key:            's', | ||||
| 			DisabledReason: disabledReason, | ||||
| 			OnPress: func() error { | ||||
| @@ -263,7 +265,9 @@ func (self *MergeAndRebaseHelper) RebaseOntoRef(ref string) error { | ||||
| 			}, | ||||
| 		}, | ||||
| 		{ | ||||
| 			Label:          self.c.Tr.InteractiveRebase, | ||||
| 			Label: utils.ResolvePlaceholderString(self.c.Tr.InteractiveRebase, | ||||
| 				map[string]string{"ref": ref}, | ||||
| 			), | ||||
| 			Key:            'i', | ||||
| 			DisabledReason: disabledReason, | ||||
| 			Tooltip:        self.c.Tr.InteractiveRebaseTooltip, | ||||
| @@ -293,7 +297,6 @@ func (self *MergeAndRebaseHelper) RebaseOntoRef(ref string) error { | ||||
| 			self.c.Tr.RebasingTitle), | ||||
| 		map[string]string{ | ||||
| 			"checkedOutBranch": checkedOutBranch, | ||||
| 			"ref":              ref, | ||||
| 		}, | ||||
| 	) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user