Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/diffview_defaults.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ DEFAULT CONFIG *diffview.defaults*
},
},
file_history_panel = {
max_len_commit_subject = 72,
log_options = { -- See |diffview-config-log_options|
git = {
single_file = {
Expand Down
1 change: 1 addition & 0 deletions lua/diffview/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ M.defaults = {
},
},
file_history_panel = {
max_len_commit_subject = 72,
log_options = {
---@type ConfigLogOptions
git = {
Expand Down
2 changes: 1 addition & 1 deletion lua/diffview/scene/views/file_history/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ local function render_entries(panel, parent, entries, updating)
comp:add_text((" (%s)"):format(entry.commit.ref_names), "DiffviewReference")
end

local subject = utils.str_trunc(entry.commit.subject, 72)
local subject = utils.str_trunc(entry.commit.subject, c.file_history_panel.max_len_commit_subject)

if subject == "" then
subject = "[empty message]"
Expand Down