mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-09 13:47:11 +02:00
rename recency to prefix
This commit is contained in:
parent
232e1c74e4
commit
c81922f8cf
@ -526,13 +526,13 @@ func getBranches() []Branch {
|
|||||||
return branches
|
return branches
|
||||||
}
|
}
|
||||||
|
|
||||||
func constructBranch(recency, name string, index int) Branch {
|
func constructBranch(prefix, name string, index int) Branch {
|
||||||
branchType, branchBase, colourAttr := branchPropertiesFromName(name)
|
branchType, branchBase, colourAttr := branchPropertiesFromName(name)
|
||||||
if index == 0 {
|
if index == 0 {
|
||||||
recency = " *"
|
prefix = " *"
|
||||||
}
|
}
|
||||||
colour := color.New(colourAttr)
|
colour := color.New(colourAttr)
|
||||||
displayString := withPadding(recency, 4) + coloredString(name, colour)
|
displayString := withPadding(prefix, 4) + coloredString(name, colour)
|
||||||
return Branch{
|
return Branch{
|
||||||
Name: name,
|
Name: name,
|
||||||
Type: branchType,
|
Type: branchType,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user