Skip to content

Difftastic externalDiffCommand doesn't change the diff pager #3413

@raheelrjunaid

Description

@raheelrjunaid

Bug Description

Adding:

git:
  paging:
    externalDiffCommand: difft --color=always

to the LazyGit config does function as expected (as outlined in #2868). Instead, it uses the default/built-in git pager.

CleanShot.2024-03-22.at.14.09.26.mp4

To Reproduce

  1. Edit ~/Library/Application\ Support/lazygit/config.yml
  2. Add externalDiffCommand (or optionally, add it to your ~/.gitconfig as the default [diff] tool and set `useConfig: true)
  3. See that difftastic doesn't work.

Expected behavior

The diff should display the following:

CleanShot 2024-03-22 at 14 08 12@2x

Version info:

build source = homebrew
version = 0.40.2
os = darwin
arch = arm64
git version = 2.44.0

Additional context

  • I've confirmed the config is read upon instantiation by adding the notARepository: 'quit' parameter, which works as expected.
  • I suspect there's something wrong with reading the config after lazygit is run considering that the above is true. os.editPreset also doesn't work for lvim

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions