Skip to content

Commit 3f5beee

Browse files
committed
Don't show decorated ref names when not asked for
1 parent 3df2da8 commit 3f5beee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lua/neogit/buffers/common.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ M.CommitEntry = Component.new(function(commit, args)
113113
local ref_name, _ = commit.ref_name:gsub("HEAD %-> ", "")
114114
local remote_name, local_name = unpack(vim.split(ref_name, ", "))
115115

116-
if local_name then
116+
if args.decorate and local_name then
117117
table.insert(
118118
ref,
119119
text(local_name .. " ", { highlight = local_name:match("/") and "String" or "Macro" })
120120
)
121121
end
122122

123-
if remote_name then
123+
if args.decorate and remote_name then
124124
table.insert(
125125
ref,
126126
text(remote_name .. " ", { highlight = remote_name:match("/") and "String" or "Macro" })

lua/neogit/popups/log/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function M.create()
4949
dependant = { "color" },
5050
})
5151
:switch("c", "color", "Show graph in color", { internal = true, incompatible = { "reverse" } })
52-
:switch("d", "decorate", "Show refnames", { enabled = true })
52+
:switch("d", "decorate", "Show refnames", { enabled = true, internal = true })
5353
:switch("S", "show-signature", "Show signatures", { key_prefix = "=" })
5454
:switch("s", "stat", "Show diffstats")
5555
:group_heading("Log")

0 commit comments

Comments
 (0)