1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

fix: fix ambiguous branch name

test: add an integration test for checkout branch by name

fix: fix full ref name of detached head

refactor: refactor current branch loader

chore: use field name explicitly
This commit is contained in:
Ryooooooga
2022-10-16 21:31:42 +09:00
committed by Jesse Duffield
parent b33ec5a050
commit 52a2e4c1dc
39 changed files with 150 additions and 43 deletions

View File

@ -29,7 +29,7 @@ var remoteIcons = []remoteIcon{
}
func IconForBranch(branch *models.Branch) string {
if branch.DisplayName != "" {
if branch.DetachedHead {
return DETACHED_HEAD_ICON
}
return BRANCH_ICON