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:
committed by
Jesse Duffield
parent
b33ec5a050
commit
52a2e4c1dc
@ -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
|
||||
|
Reference in New Issue
Block a user