jesseduffield.lazygit/pkg/integration/tests/misc
Stefan Haller 3868a9407b Ask git for the branch when the HEAD file doesn't hold it
Reading HEAD is worth keeping for the repos it can answer for, because
the menu opens on a keystroke and asking git costs a process per entry.
So go to git only for the placeholder, and for anything else the read
can't make sense of. That last part also gets the menu an answer for
layouts we don't know about yet, where it used to give up and say
"Branch unknown".

Git needs two commands to cover every repo. `git symbolic-ref` names the
branch even when it has no commit yet; `git rev-parse` resolves a
detached HEAD, and fails on a branch without a commit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-14 10:49:29 +02:00
..
confirm_on_quit.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
copy_confirmation_message_to_clipboard.go Add "CopyToClipboard" command to ConfirmationController 2025-08-15 17:17:06 +02:00
copy_to_clipboard.go Cleanup: remove unnecessary code in test 2025-08-15 17:17:06 +02:00
direnv_approves_envrc.go Offer direnv .envrc approval from inside lazygit 2026-06-04 09:05:01 +02:00
direnv_loaded_on_repo_switch.go Load direnv environment when switching repos 2026-06-04 09:05:01 +02:00
direnv_unloads_on_blocked_envrc.go Offer direnv .envrc approval from inside lazygit 2026-06-04 09:05:01 +02:00
filter_recent_repos.go Filter the recent repositories menu as you type 2026-08-31 20:41:22 +02:00
initial_open.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
recent_repos_branch_column.go Resolve a relative gitdir against the repo it belongs to 2026-09-14 10:49:29 +02:00
recent_repos_column_widths.go Truncate the path column of the recent repos menu too 2026-09-14 09:23:26 +02:00
recent_repos_on_launch.go [DATALAD RUNCMD] run codespell throughout fixing typos automagically 2024-08-27 18:03:00 +02:00
recent_repos_reftable_repo.go Ask git for the branch when the HEAD file doesn't hold it 2026-09-14 10:49:29 +02:00
recent_repos_with_long_names.go Truncate the path column of the recent repos menu too 2026-09-14 09:23:26 +02:00
start_in_git_dir.go Open the repo when lazygit is started in its .git dir 2026-08-08 11:15:01 +02:00