jesseduffield.lazygit/pkg
Stefan Haller 898f565116 Fix delay with flicking through files or commits when git diff is very slow
One reason why git diff can be very slow is when "diff.algorithm = histogram" is
being used. In this case, showing a very long single-file diff can take seconds
to load, and you'll see the "loading..." message in the main view until we got
the first lines of the diff to show. There's nothing really we can do about this
delay; however, when switching to another, shorter file (or commit) while the
"loading..." message is still showing, this switch should be instantaneous. And
it was before 0.54.0, but we broke this in 0.54.0 with 8d7740a5ac (#4782); now
users have to wait for the slow git diff command to output more text before the
switch occurs.

To fix this, don't block waiting for the process to terminate if we just stopped
it.
2025-08-11 18:07:21 +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 fix: broken markdown by replace \n into <md> 2025-07-06 10:11:49 +02:00
commands Cleanup: move UpdateWindowTitle to platform-specific source files 2025-08-11 18:07:21 +02:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Show hint about hunk staging mode being the default now, and how to switch to line mode 2025-08-01 10:35:17 +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 cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Trim trailing newlines when showing confirmations 2025-08-08 20:37:44 +02:00
i18n Fix the useHunkModeInStagingView hint in the breaking changes message 2025-08-06 19:26:00 +02:00
integration Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
jsonschema Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
tasks Fix delay with flicking through files or commits when git diff is very slow 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