gitless icon indicating copy to clipboard operation
gitless copied to clipboard

gl diff: not working with diff-so-fancy or delta

Open SimpelMe opened this issue 3 years ago • 1 comments

Hi. I use diff-so-fancy as my core.pager while diff (core.pager=diff-so-fancy | less --tabs=4 -RFX).

$ gl diff
Diff-so-fancy: https://github.com/so-fancy/diff-so-fancy
Version      : 1.3.0

Usage:

git diff --color | diff-so-fancy         # Use d-s-f on one diff
cat diff.txt | diff-so-fancy             # Use d-s-f on a diff/patch file
diff -u one.txt two.txt | diff-so-fancy  # Use d-s-f on unified diff output

diff-so-fancy --colors                   # View the commands to set the recommended colors
diff-so-fancy --set-defaults             # Configure git-diff to use diff-so-fancy and suggested colors

# Configure git to use d-s-f for *all* diff operations
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
✘ Call to pager diff-so-fancy | less --tabs=4 -RFX failed

Do you see any possibility to get that work?

Regards, Simpel

SimpelMe avatar Oct 31 '20 17:10 SimpelMe

That affects gl historytoo.

SimpelMe avatar Oct 31 '20 17:10 SimpelMe