1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-13 22:17:05 +02:00

Add prompt to the remote branch checkout menu

This commit is contained in:
Stefan Haller 2024-03-18 14:12:35 +01:00
parent 7e92dbfd3d
commit ddd6323aa5
2 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,7 @@ func (self *RefsHelper) CheckoutRemoteBranch(fullBranchName string, localBranchN
Title: utils.ResolvePlaceholderString(self.c.Tr.RemoteBranchCheckoutTitle, map[string]string{ Title: utils.ResolvePlaceholderString(self.c.Tr.RemoteBranchCheckoutTitle, map[string]string{
"branchName": fullBranchName, "branchName": fullBranchName,
}), }),
Prompt: self.c.Tr.RemoteBranchCheckoutPrompt,
Items: []*types.MenuItem{ Items: []*types.MenuItem{
{ {
Label: self.c.Tr.CheckoutTypeNewBranch, Label: self.c.Tr.CheckoutTypeNewBranch,

View File

@ -113,6 +113,7 @@ type TranslationSet struct {
CheckoutByName string CheckoutByName string
CheckoutByNameTooltip string CheckoutByNameTooltip string
RemoteBranchCheckoutTitle string RemoteBranchCheckoutTitle string
RemoteBranchCheckoutPrompt string
CheckoutTypeNewBranch string CheckoutTypeNewBranch string
CheckoutTypeNewBranchTooltip string CheckoutTypeNewBranchTooltip string
CheckoutTypeDetachedHead string CheckoutTypeDetachedHead string
@ -1079,6 +1080,7 @@ func EnglishTranslationSet() TranslationSet {
CheckoutByName: "Checkout by name", CheckoutByName: "Checkout by name",
CheckoutByNameTooltip: "Checkout by name. In the input box you can enter '-' to switch to the last branch.", CheckoutByNameTooltip: "Checkout by name. In the input box you can enter '-' to switch to the last branch.",
RemoteBranchCheckoutTitle: "Checkout {{.branchName}}", RemoteBranchCheckoutTitle: "Checkout {{.branchName}}",
RemoteBranchCheckoutPrompt: "How would you like to check out this branch?",
CheckoutTypeNewBranch: "New local branch", CheckoutTypeNewBranch: "New local branch",
CheckoutTypeNewBranchTooltip: "Checkout the remote branch as a local branch, tracking the remote branch.", CheckoutTypeNewBranchTooltip: "Checkout the remote branch as a local branch, tracking the remote branch.",
CheckoutTypeDetachedHead: "Detached head", CheckoutTypeDetachedHead: "Detached head",