jesseduffield.lazygit/pkg
Stefan Haller e585accd37 Give better feedback when checking out the previous branch
Previously, the feedback you got when pressing "-" was just a "Checking out..."
status in the bottom line. This was both easy to miss if you are used to looking
for an inline status in the branches panel, and it didn't provide information
about which branch was being checked out, which can be annoying in very large
repos where checking out takes a while, and you only see at the end if you are
now on the right branch.

Improve this by trying to figure out which branch was the previously checked out
one, and then checking it out normally so that you get an inline status next to
it (as if you had pressed space on it). There are cases where this fails, e.g.
when the previously checked out ref was a detached head, in which case we fall
back to the previous behavior.
2025-10-02 18:28:17 +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 Give better feedback when checking out the previous branch 2025-10-02 18:28:17 +02:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Add separate keybindings for confirmMenu and confirmSuggestion 2025-09-05 10:42:04 +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 Give better feedback when checking out the previous branch 2025-10-02 18:28:17 +02:00
i18n fix command description typo 2025-09-18 12:24:25 +02:00
integration Add separate keybindings for confirmMenu and confirmSuggestion 2025-09-05 10:42:04 +02:00
jsonschema Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +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