Skip to content

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

Description

@protiumx

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

Activity

  1. added
    enhancementNew feature or request
    and removed
    bugSomething isn't working
    on Nov 20, 2023
  2. sindrets commented on Nov 20, 2023

    @sindrets
    Owner

    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.

  3. protiumx commented on Nov 21, 2023

    @protiumx
    Author

    Hi @sindrets I opened #441 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions