git: add extraArgs option for difftastic

This option will cover any other arguments that aren't made available
with dedicated options.
This commit is contained in:
Brian Lyles 2025-10-02 23:53:56 -05:00 committed by Austin Horstman
parent 1652349e57
commit 7d3d323e90
3 changed files with 28 additions and 9 deletions

View file

@ -1,9 +1,9 @@
[diff]
external = "@difftastic@/bin/difft --color always --background dark --display inline --context 5"
external = "@difftastic@/bin/difft --color always --background dark --display inline --context 5 --tab-width=8 --sort-paths"
tool = "difftastic"
[difftool "difftastic"]
cmd = "@difftastic@/bin/difft --color always --background dark --display inline --context 5 $LOCAL $REMOTE"
cmd = "@difftastic@/bin/difft --color always --background dark --display inline --context 5 --tab-width=8 --sort-paths $LOCAL $REMOTE"
[gpg]
format = "openpgp"

View file

@ -9,6 +9,10 @@
color = "always";
context = 5;
display = "inline";
extraArgs = [
"--tab-width=8"
"--sort-paths"
];
};
};