jesseduffield.lazygit/pkg/integration/tests
Stefan Haller c1e52fc807 Fix dropping submodule changes from a commit
Our logic to decide if a file needs to be checked out from the previous commit
or deleted because it didn't exist in the previous commit didn't work for
submodules. We were using `git cat-file -e` to ask whether the file existed, but
this returns an error for submodules, so we were always deleting those instead
of reverting them back to their previous state.

Switch to using `git ls-tree -- file` instead, which works for both files and
submodules.
2025-10-10 12:55:58 +02:00
..
bisect Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
branch Draw divergence from base branch right-aligned in branches view 2025-07-30 14:23:31 +02:00
cherry_pick Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
commit Fix dropping submodule changes from a commit 2025-10-10 12:55:58 +02:00
config Remove obsolete git version restrictions 2025-07-09 12:18:57 +02:00
conflicts Add merge options menu 2025-10-09 08:45:58 +02:00
custom_commands Fix more unstable tests 2025-07-10 08:59:01 +02:00
demo Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
diff Allow changing diff context size and rename threshold when main view is focused 2025-04-23 08:38:46 +02:00
file Add user config gui.addRootItemInFileTree 2025-05-24 18:17:25 +02:00
filter_and_search Allow filtering for keybindings by prepending filter string with '@' 2025-08-14 15:02:48 +02:00
filter_by_author Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
filter_by_path When entering a commit in path filtering mode, select the filtered path 2025-10-09 09:58:15 +02:00
interactive_rebase Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
misc Add "CopyToClipboard" command to ConfirmationController 2025-08-15 17:17:06 +02:00
patch_building Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
reflog Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
shared Add merge options menu 2025-10-09 08:45:58 +02:00
shell_commands Rename "Custom Command" to "Shell Command" 2024-08-17 10:56:03 +02:00
staging Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
stash Fix dropping a range of stashes in filtered mode 2025-08-25 18:41:06 +02:00
status Draw divergence from base branch right-aligned in branches view 2025-07-30 14:23:31 +02:00
submodule Fix view selection running out of sync with list selection when view isn't focused 2025-04-20 16:06:15 +02:00
sync Don't auto-forward branches that are checked out by another worktree 2025-08-20 10:43:19 +02:00
tag Add tests for tag information rendering 2025-07-28 10:53:51 +02:00
ui Avoid showing <esc> in options map when it doesn't do anything 2025-08-14 17:59:38 +02:00
undo Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
worktree Rename AddFileInWorktree to AddFileInWorktreeOrSubmodule 2025-10-10 12:55:58 +02:00
test_list.go Add test demonstrating the problem 2025-10-10 12:55:58 +02:00
test_list_generator.go Fix typos 2025-01-03 10:50:36 +11:00
tests.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00