1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg/gui
Stefan Haller 843e12286f Improve prompts when amending commits
This fixes two minor problems with the prompts:

1. When pressing shift-A in the local commits view, it would first prompt
   whether to stage all files, and then it would prompt whether to amend the
   commit at all. This doesn't make sense, it needs to be the other way round.

2. When pressing shift-A on the head commit in an interactive rebase, we would
   ask whether they want to amend the last commit, like when pressing shift-A in
   the files view. While this is technically correct, the fact that we're
   amending the head commit in this case is just an implementation detail, and
   from the user's point of view it's better to use the same prompt as we do for
   any other commit.

To fix these, we remove the confirmation panel from AmendHelper.AmendHead() and
instead add it at the two call sites, so that we have more control over this.
2023-09-01 18:55:16 +02:00
..
context Add "Show divergence from upstream" entry to Upstream menu in branches panel 2023-08-29 08:16:40 +02:00
controllers Improve prompts when amending commits 2023-09-01 18:55:16 +02:00
filetree Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
keybindings Use same labels for keys that we use in the config 2023-05-21 10:59:16 +10:00
mergeconflicts
modes Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
patch_exploring Stop cycling hunks when reaching the end 2023-08-15 11:40:40 +02:00
popup Add demo test variant 2023-07-31 22:33:04 +10:00
presentation Add "Show divergence from upstream" entry to Upstream menu in branches panel 2023-08-29 08:16:40 +02:00
services/custom_commands Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
status Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
style Stop hiding underscores for VSCode 2023-06-01 20:12:20 +10:00
types Don't show toasts when running integration tests 2023-08-30 10:54:32 +02:00
background.go Ensure background refreshes don't bunch up 2023-07-10 17:30:44 +10:00
command_log_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
context_config.go
context.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
controllers.go Extract a SubCommitsHelper from SwitchToSubCommitsController 2023-08-29 08:16:40 +02:00
dummies.go
editors.go Add emacs-keybinds for word navigation 2023-08-15 12:22:17 +02:00
extras_panel.go Log error when saving app state fails after showing/hiding command log 2023-07-31 11:41:55 +02:00
global_handlers.go Add demo test variant 2023-07-31 22:33:04 +10:00
gui_common.go Don't show toasts when running integration tests 2023-08-30 10:54:32 +02:00
gui_driver.go Add a Click() primitive to the integration test library 2023-08-07 15:10:28 +01:00
gui.go Remove file watcher code 2023-08-02 21:50:44 +10:00
information_panel.go If OpenLink errors, show a dialog instead 2023-08-09 13:12:40 +01:00
keybindings.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
layout.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
main_panels.go
menu_panel.go Remove the magenta color on menu items that open a menu 2023-08-29 08:04:47 +02:00
options_map.go Add demo test variant 2023-07-31 22:33:04 +10:00
pty_windows.go
pty.go
recent_repos_panel.go Use forward-slashes on windows 2023-07-30 18:35:24 +10:00
tasks_adapter.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
test_mode.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
view_helpers.go Log duration of post-refresh-update call 2023-07-29 09:39:22 +10:00
views.go Mention ctrl+o binding in commit message sub title 2023-08-21 10:03:34 +02:00