Files
Austin Horstman 652f754686 difftastic: support difftool-only git integration
Splitting git diff tools into the separate programs.difftastic module
made it impossible to register difftastic as a git difftool without also
forcing it as diff.external, since the boolean git.diffToolMode only
toggled between "external" and "external + difftool".

Replace git.diffToolMode with a git.mode enum ("external", "difftool",
"both") so difftastic can be wired as the difftool only, leaving
`git diff` untouched. The deprecated boolean is migrated automatically
via mkChangedOptionModule (true -> "both", false -> "external"),
preserving existing behavior.

Fixes #8592
2026-06-18 07:45:53 -05:00

10 lines
463 B
Nix

{
difftastic-basic = ./difftastic-basic.nix;
difftastic-with-git-integration = ./difftastic-with-git-integration.nix;
difftastic-with-git-external-diff = ./difftastic-with-git-external-diff.nix;
difftastic-with-git-difftool = ./difftastic-with-git-difftool.nix;
difftastic-with-git-both = ./difftastic-with-git-both.nix;
difftastic-legacy-diff-tool-mode = ./difftastic-legacy-diff-tool-mode.nix;
difftastic-migration = ./difftastic-migration.nix;
}