1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Add config gui.experimentalShowBranchHeads

People find the new (*) display for branch heads in the commits list confusing,
so make it opt-in for now.
This commit is contained in:
Stefan Haller
2023-05-02 09:36:03 +02:00
committed by Jesse Duffield
parent c6c4346d48
commit fba1a2b5ac
6 changed files with 111 additions and 45 deletions

View File

@ -277,7 +277,7 @@ func displayCommit(
} else {
if len(commit.Tags) > 0 {
tagString = theme.DiffTerminalColor.SetBold().Sprint(strings.Join(commit.Tags, " ")) + " "
} else if commit.ExtraInfo != "" {
} else if common.UserConfig.Gui.ExperimentalShowBranchHeads && commit.ExtraInfo != "" {
tagString = style.FgMagenta.SetBold().Sprint("(*)") + " "
}
}