jesseduffield.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 Make bisect/basic.go test more concrete 2023-07-31 08:34:01 +02:00
branch Add integration test for the new divergence log 2023-08-29 08:16:40 +02:00
cherry_pick Use sentence case everywhere 2023-05-25 23:52:19 +10:00
commit Add integration test 2023-08-21 10:03:34 +02:00
config Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
conflicts Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
custom_commands Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
demo Add demo for diffing two commits 2023-08-12 17:24:05 +10:00
diff Add busy count for integration tests 2023-07-08 22:54:52 +10:00
file Retry on index.lock error 2023-07-10 19:13:18 +10:00
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 Use sentence case everywhere 2023-05-25 23:52:19 +10:00
interactive_rebase Improve prompts when amending commits 2023-09-01 18:55:16 +02:00
misc feat: add os.copyToClipboardCmd to allow for a custom command 2023-07-29 19:09:59 +10:00
patch_building feat: add os.copyToClipboardCmd to allow for a custom command #1055 (#2784) 2023-07-29 19:35:52 +10:00
reflog Don't show branch heads in reflog subcommits 2023-07-31 08:34:01 +02:00
shared Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
staging Fix the title and text (and variable names) of the Discard Changes prompt 2023-06-26 08:15:35 +02:00
stash Remove StashWithMessage function 2023-07-10 15:09:17 +02:00
submodule Use sentence case everywhere 2023-05-25 23:52:19 +10:00
sync Show correct keybindings in force-push prompt 2023-07-31 11:38:52 +02:00
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 Use sentence case everywhere 2023-05-25 23:52:19 +10:00
worktree Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
test_list.go Fix escape not cancelling filter mode, but closing the menu instead 2023-08-30 22:37:13 +02:00
test_list_generator.go Appease linter 2023-08-02 08:32:57 +10:00
tests.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00