1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00
lazygit/pkg/integration/tests
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
..
bisect
branch Add integration test for the new divergence log 2023-08-29 08:16:40 +02:00
cherry_pick
commit Add integration test 2023-08-21 10:03:34 +02:00
config
conflicts
custom_commands
demo Add demo for diffing two commits 2023-08-12 17:24:05 +10:00
diff
file
filter_and_search Fix escape not cancelling filter mode, but closing the menu instead 2023-08-30 22:37:13 +02:00
filter_by_path
interactive_rebase Improve prompts when amending commits 2023-09-01 18:55:16 +02:00
misc
patch_building
reflog
shared
staging
stash
submodule
sync
tag Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
ui If OpenLink errors, show a dialog instead 2023-08-09 13:12:40 +01:00
undo
worktree Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
test_list_generator.go Appease linter 2023-08-02 08:32:57 +10:00
test_list.go Fix escape not cancelling filter mode, but closing the menu instead 2023-08-30 22:37:13 +02:00
tests.go