mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-03 13:21:56 +02:00
keep asterisk at the checked out branch
This commit is contained in:
parent
d08241b2ea
commit
c470c1f575
@ -78,7 +78,8 @@ func (b *branchListBuilder) build() []Branch {
|
||||
branches := make([]Branch, 0)
|
||||
head := b.obtainCurrentBranch()
|
||||
validBranches := b.obtainSafeBranches()
|
||||
reflogBranches := uniqueByName(append(b.obtainReflogBranches(), head))
|
||||
reflogBranches := b.obtainReflogBranches()
|
||||
reflogBranches = uniqueByName(append([]Branch{head}, reflogBranches...))
|
||||
|
||||
branches = b.appendNewBranches(branches, reflogBranches, validBranches, true)
|
||||
branches = b.appendNewBranches(branches, validBranches, branches, false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user