Skip to content

Support configuration for git diff? #800

@rayluo

Description

@rayluo

Is your feature request related to a problem? Please describe.
There is some fancy usage for git diff. Can we have a configuration option for git diff?

Describe the solution you'd like
I apologize if there is already one of such settings available, I'm just not seeing one when examining #797. The current default config file is largely empty, by the way. Could/shall we add all available options there, while commenting out, so that users can easily find and toggle them? - Umm, this alone could be a separated feature requirement.

UPDATE 2025
Starting from upcoming lazygit 0.55, you will be able to opt in for git's existing external diff setup by configuring:

git:
  paging:
    # If true, Lazygit will use git's `diff.external` config for paging. The advantage over `externalDiffCommand` is that this can be configured per file type in .gitattributes; see https://git-scm.com/docs/gitattributes#_defining_an_external_diff_driver.
    useExternalDiffGitConfig: true

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions