diffview.nvim icon indicating copy to clipboard operation
diffview.nvim copied to clipboard

[Feature Request] allow to change commit log format in FileHistoryPanel

Open protiumx opened this issue 2 years ago • 2 comments

Description

I would like to change the commit log format to only show hash and author. I have tried adding the --pretty flag to the default args for the DiffViewFileHistory but it doesn't work.

default_args {
      DiffviewFileHistory = { "--base=LOCAL" , "--pretty=format..."},
}

Expected behavior

No response

Actual behavior

Log format in the FileHistoryPanel cannot be changed

protiumx avatar Nov 17 '23 13:11 protiumx

The --pretty flag is completely unrelated to how info is actually rendered in the plugin panels. We rely on a very specific format internally such that we can parse the log info efficiently.

Allowing customization of the rendered format is possible, but low priority.

If someone wants to work on this just let me know. I can give info about relevant parts of the code, and we can discuss implementation.

sindrets avatar Nov 20 '23 15:11 sindrets

Hi @sindrets I opened #441 for this

protiumx avatar Nov 21 '23 18:11 protiumx