jesseduffield.lazygit/pkg
Stefan Haller 235f5bb221 Avoid rendering branches view twice when refreshing
refreshWorktrees re-renders the branches view, because the branches view shows
worktrees against branches. This means that when both BRANCHES and WORKTREES are
requested to be refreshed, the branches view would be rendered twice in short
succession. This causes an ugly visual glitch when force-pushing a branch,
because when pushing is done, we would see the ↑4↓9 status come back from under
the Pushing status for a brief moment, to be replaced with a green checkmark a
moment later.

Fix this by including the worktree refresh in the branches refresh when both are
requested. This means that the two are no longer running in parallel for an
async refresh, but hopefully that's not so bad.
2023-10-08 18:45:36 +02:00
..
app respect and env vars 2023-09-25 12:20:12 +02:00
cheatsheet Use go:generate for generating cheatsheets 2023-09-29 20:38:29 +02:00
commands Remove sync mutex 2023-10-08 18:45:36 +02:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Add Micro editor preset 2023-10-03 19:42:28 +02:00
constants update release notes 2021-04-20 18:34:47 +10: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 Avoid rendering branches view twice when refreshing 2023-10-08 18:45:36 +02:00
i18n Disallow pulling/pushing a branch while the branch is pushed or pulled 2023-10-08 18:45:36 +02:00
integration Make test_list_generator.go print what it's doing 2023-09-29 20:40:15 +02:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Remove secureexec package 2023-07-30 19:59:51 +10:00
theme Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Add constant for LoaderAnimationInterval 2023-09-20 13:30:49 +02:00