1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

better confirmation panel messages

This commit is contained in:
Jesse Duffield
2018-06-10 11:52:30 +10:00
parent 5fd3d11789
commit 4a483c112e
4 changed files with 9 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ func handleBranchPress(g *gocui.Gui, v *gocui.View) error {
func handleForceCheckout(g *gocui.Gui, v *gocui.View) error {
branch := getSelectedBranch(v)
return createConfirmationPanel(g, v, "Force Checkout Branch", "Are you sure you want force checkout? You will lose all local changes (y/n)", func(g *gocui.Gui, v *gocui.View) error {
return createConfirmationPanel(g, v, "Force Checkout Branch", "Are you sure you want force checkout? You will lose all local changes", func(g *gocui.Gui, v *gocui.View) error {
if output, err := gitCheckout(branch.Name, true); err != nil {
createErrorPanel(g, output)
}
@@ -70,6 +70,7 @@ func renderBranchesOptions(g *gocui.Gui) error {
"f": "force checkout",
"m": "merge",
"c": "checkout by name",
"n": "checkout new branch",
})
}