jesseduffield.lazygit/pkg/integration/components
Jesse Duffield 53a8bd2e3f Add ability to start an interactive rebase onto an appropriate base
A common issue I have is that I want to move a commit from the top of my branch
all the way down to the first commit on the branch. To do that, I need to navigate
down to the first commit on my branch, press 'e' to start an interactive rebase,
then navigate back up to the top of the branch, then move my commit back down to
the base. This is annoying.

Similarly annoying is moving the commit one-by-one without explicitly starting
an interactive rebase, because then each individual step is its own rebase which
takes a while in aggregate.

This PR allows you to press 'i' from the commits view to start an interactive
rebase from an 'appropriate' base. By appropriate, we mean that we want to start
from the HEAD and stop when we reach the first merge commit or commit on the main
branch. This may end up including more commits than you need, but it doesn't make
a difference.
2024-01-13 12:57:49 +11:00
..
alert_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
assertion_helper.go Remove retry logic in integration tests 2023-07-09 20:57:18 +10:00
commit_description_panel_driver.go Add test demonstrating a bug with preserving the commit message 2024-01-09 14:31:53 +01:00
commit_message_panel_driver.go Remove unused function 2024-01-09 14:31:53 +01:00
common.go Add ability to start an interactive rebase onto an appropriate base 2024-01-13 12:57:49 +11:00
confirmation_driver.go Add demo for amending old commit 2023-08-02 22:32:51 +10:00
file_system.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
git.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
int_matcher.go Add integration tests for searching/filtering 2023-07-03 12:54:14 +10:00
matcher.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
menu_driver.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
paths.go Rename test/results to test/_results 2023-09-15 18:04:20 +02:00
popup.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
prompt_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
random.go Add commit graph demo 2023-08-12 16:16:03 +10:00
runner.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
search_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
shell.go Add integration test for remote branch sort order 2023-12-22 16:30:20 +09:00
test.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
test_driver.go Add a Click() primitive to the integration test library 2023-08-07 15:10:28 +01:00
test_test.go Add a Click() primitive to the integration test library 2023-08-07 15:10:28 +01:00
text_matcher.go Add DoesNotContainAnyOf matcher 2023-08-29 08:16:40 +02:00
view_driver.go Add a mechanism to insert non-model items into list contexts 2023-08-29 08:04:47 +02:00
views.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00