Is there a way to "git -c diff.external=delta"? #1975
-
After reading through the overview of
However, it seems
Is there an easy way to make |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @byron-hawkins, delta displays diffs; it doesn't compute diffs itself. To use delta, you feed it the output of git diff --merge-base feature/improvement -- src/ui/widget.cpp alternatively, or to quickly try out delta without messing with git config, you can just pipe git's output to delta: git diff --merge-base feature/improvement -- src/ui/widget.cpp | delta delta can display diff output from any program that produces unified diff ( |
Beta Was this translation helpful? Give feedback.
Hi @byron-hawkins, delta displays diffs; it doesn't compute diffs itself. To use delta, you feed it the output of
git diff
. The normal way to do that is to add delta configuration to gitconfig: https://dandavison.github.io/delta/get-started.html and then you simply use your normal git command:alternatively, or to quickly try out delta without messing with git config, you can just pipe git's output to delta:
git diff --merge-base feature/improvement -- src/ui/widget.cpp | delta
delta can display diff output from any program that produces unified diff (
diff -u
) or git diff format. But it's most commonly used with git.