jesseduffield.lazygit/pkg/integration/tests
Stefan Haller 4cd15a36e3 Fix custom patch operations on added files
Several custom patch commands on parts of an added file would fail with the
confusing error message "error: new file XXX depends on old contents". These
were dropping the custom patch from the original commit, moving the patch to a
new commit, moving it to a later commit, or moving it to the index.

We fix this by converting the patch header from an added file to a diff against
an empty file. We do this not just for the purpose of applying the patch, but
also for rendering it and copying it to the clip board. I'm not sure it matters
much in these cases, but it does feel more correct for a filtered patch to be
presented this way.
2024-06-23 12:40:31 +02:00
..
bisect Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
branch Add command "Rebase onto base branch" to rebase menu 2024-06-03 14:06:11 +02:00
cherry_pick Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
commit Assert that the search status view is visible 2024-06-23 11:43:12 +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 Add property outputTitle to CustomCommand 2024-05-20 21:02:49 +02:00
demo fix: update rebase_onto demo test to match new rebase menu title 2024-06-05 01:38:08 +02:00
diff Add busy count for integration tests 2023-07-08 22:54:52 +10:00
file Support range select for staging/discarding files 2024-01-25 11:34:59 +11:00
filter_and_search Fix crash when filtering the keybindings menu 2024-03-28 09:58:45 +01:00
filter_by_author Add author filtering to commit view 2024-02-21 09:58:09 +01:00
filter_by_path Keep the same commit selected when exiting filtering mode 2024-03-28 12:23:46 +01:00
interactive_rebase Suspend lazygit when continuing a rebase with exec todos 2024-06-12 12:45:00 +02:00
misc Change CopiedToClipboard text to start lower-case 2024-03-22 09:59:46 +01:00
patch_building Fix custom patch operations on added files 2024-06-23 12:40:31 +02:00
reflog Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
shared Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
staging Assert that the search status view is visible 2024-06-23 11:43:12 +02:00
stash Fix stashing partialy staged files for git version >= 2.35.0 2024-05-18 09:59:00 +02:00
status Show divergence from base branch in branches list 2024-06-03 13:59:43 +02:00
submodule Show all submodules recursively 2024-03-07 20:16:28 +01:00
sync Remove ColoredBranchStatus and branchStatusColor 2024-06-03 13:02:46 +02:00
tag Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
ui Clear keybinding functions in resetHelpersAndControllers 2024-06-23 12:28:42 +02:00
undo Support range select in rebase actions 2024-01-23 17:23:56 +11:00
worktree pkg: fix some typos 2024-04-20 13:47:39 +02:00
test_list.go Fix custom patch operations on added files 2024-06-23 12:40:31 +02:00
test_list_generator.go Make test_list_generator.go print what it's doing 2023-09-29 20:40:15 +02:00
tests.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00