jesseduffield.lazygit/pkg
Stefan Haller e858bad3f8 Fix lazygit getting unresponsive when pasting commits that become empty
Whenever git returns the error "The previous cherry-pick is now empty", we would
previously continue the rebase; this works for rebase because it behaves the
same as "git rebase --skip" in this case. That's not true for cherry-pick
though; if you continue a cherry-pick where the current commit is empty, it will
return the same error again, causing lazygit to be stuck in an endless loop.

Fix this by skipping instead of continuing; this shouldn't make a difference for
rebase, but works for cherry-pick.

Theoretically we could have a similar problem for revert (if you are trying to
revert a commit that has already been undone through some other means); this
should then be fixed in the same way with this change. However, the change is
not relevant for revert because git returns a different error in this case.
2025-10-14 12:27:32 +02:00
..
app Create a user-specific temp dir to avoid permission problems on multi-user machines 2025-08-05 22:50:22 +02:00
cheatsheet Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00
commands Replace paging config with an array of pagers 2025-10-14 12:17:13 +02:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Add config migration of paging section to pagers array 2025-10-14 12:17:13 +02:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes
gui Fix lazygit getting unresponsive when pasting commits that become empty 2025-10-14 12:27:32 +02:00
i18n Offer to force-delete a worktree if it contains submodules 2025-10-14 12:19:49 +02:00
integration Offer to force-delete a worktree if it contains submodules 2025-10-14 12:19:49 +02:00
jsonschema Wrap long comment lines in Config.md 2025-10-10 21:25:02 +02:00
logs Clean up build tags 2025-08-14 20:40:44 +02:00
snake Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
tasks Improve CPU usage when flicking through large diffs 2025-08-11 18:07:21 +02:00
theme Highlight inactive selection in bold 2024-06-23 14:43:13 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Cleanup: remove duplicate test case 2025-08-08 11:24:43 +02:00