jesseduffield.lazygit/pkg/integration/tests
Jesse Duffield b61ca21a84 Allow checking for merge conflicts after running a custom command
We have a use-case to rebind 'm' to the merge action in the branches panel. There's three ways to handle this:
1) For all global keybindings, define a per-panel key that invokes it
2) Give a name to all controller actions and allow them to be invoked in custom commands
3) Allow checking for merge conflicts after running a custom command so that users can add their own 'git merge' custom command
that matches the in-built action

Option 1 is hairy, Option 2 though good for users introduces new backwards compatibility issues that I don't want to do
right now, and option 3 is trivially easy to implement so that's what I'm doing.

I've put this under an 'after' key so that we can add more things later. I'm imagining other things like being able to
move the cursor to a newly added item etc.

I considered always running this hook by default but I'd rather not: it's matching on the output text and I'd rather something
like that be explicitly opted-into to avoid cases where we erroneously believe that there are conflicts.
2023-07-13 18:40:34 +10:00
..
bisect Use sentence case everywhere 2023-05-25 23:52:19 +10:00
branch Insert fake todo entry for a conflicting commit that is being applied 2023-06-22 18:57:58 +02:00
cherry_pick Use sentence case everywhere 2023-05-25 23:52:19 +10:00
commit Add busy count for integration tests 2023-07-08 22:54:52 +10: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
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 Use searching, not filtering, in file tree views 2023-07-03 12:54:14 +10:00
filter_by_path Use sentence case everywhere 2023-05-25 23:52:19 +10:00
interactive_rebase Add busy count for integration tests 2023-07-08 22:54:52 +10:00
misc Fix focus issue when opening recent-repos menu at launch 2023-06-07 18:27:18 +10:00
patch_building Fix conflict test 2023-07-10 15:09:17 +02:00
reflog Fix flakey test 2023-06-03 15:54:03 +10: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 Fix pull rebase tests 2023-07-10 15:09:17 +02:00
tag Use sentence case everywhere 2023-05-25 23:52:19 +10:00
ui Use sentence case everywhere 2023-05-25 23:52:19 +10:00
undo Use sentence case everywhere 2023-05-25 23:52:19 +10:00
test_list.go Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
test_list_generator.go cleanup integration test code 2023-02-26 12:54:13 +11:00
tests.go cleanup integration test code 2023-02-26 12:54:13 +11:00