jesseduffield.lazygit/pkg/i18n
Stefan Haller 63bd2d98c0 Show a waiting status while creating a branch
Creating a branch checks it out, and checking out a distant ref (a tag
or a commit far from HEAD) can take a noticeable while. NewBranch ran
that synchronously in the prompt's confirm handler, on the UI thread, so
the UI froze — no spinner, no repaint — until it finished.

Move the branch creation (and the autostash path) onto a worker with a
waiting status, mirroring CheckoutRef, and refresh from the worker so
the UI thread stays live and the spinner keeps animating.

Push the branches context from the refresh's Then rather than up front:
the refresh already batches its UI updates, so switching panels there
lands the switch in the same frame as the refreshed branch list instead
of flashing the pre-refresh list while the checkout is still running.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 12:32:32 +02:00
..
translations Update translations from Crowdin 2026-07-04 14:36:49 +02:00
english.go Show a waiting status while creating a branch 2026-07-17 12:32:32 +02:00
i18n.go Modernize all codes 2025-11-15 10:46:23 +01:00
i18n_test.go Clear LC_* env vars when running LANG tests 2026-05-01 08:13:52 +02:00