1
0
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:
Jesse Duffield 2018-08-10 21:38:51 +10:00
parent d08241b2ea
commit c470c1f575

View File

@ -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)