sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.92k stars 107 forks source link

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

Open protiumx opened 10 months ago

protiumx commented 10 months ago

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

sindrets commented 10 months ago

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.

protiumx commented 10 months ago

Hi @sindrets I opened #441 for this