Skip to content

Commit 66ba8b8

Browse files
authored
Merge pull request #831 from NeogitOrg/log-view-fix-decoration
2 parents 3df2da8 + 861c9a2 commit 66ba8b8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lua/neogit/buffers/common.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ local highlight_for_signature = {
109109

110110
M.CommitEntry = Component.new(function(commit, args)
111111
local ref = {}
112-
if commit.ref_name ~= "" then
112+
113+
-- Parse out ref names
114+
if args.decorate and commit.ref_name ~= "" then
113115
local ref_name, _ = commit.ref_name:gsub("HEAD %-> ", "")
114116
local remote_name, local_name = unpack(vim.split(ref_name, ", "))
115117

lua/neogit/popups/log/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function M.create()
77
-- TODO: Need to figure out how this works
88
-- :switch("h", "header", "Show header", { cli_prefix = "++" })
99
-- :switch("p", "patch", "Show diffs")
10+
-- :switch("s", "stat", "Show diffstats")
1011

1112
local p = popup
1213
.builder()
@@ -49,9 +50,8 @@ function M.create()
4950
dependant = { "color" },
5051
})
5152
:switch("c", "color", "Show graph in color", { internal = true, incompatible = { "reverse" } })
52-
:switch("d", "decorate", "Show refnames", { enabled = true })
53+
:switch("d", "decorate", "Show refnames", { enabled = true, internal = true })
5354
:switch("S", "show-signature", "Show signatures", { key_prefix = "=" })
54-
:switch("s", "stat", "Show diffstats")
5555
:group_heading("Log")
5656
:action("l", "current", actions.log_current)
5757
:action("h", "HEAD", actions.log_head)

0 commit comments

Comments
 (0)