Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SimpelMe opened this issue Oct 31, 2020 · 1 comment
Open

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

SimpelMe opened this issue Oct 31, 2020 · 1 comment
Labels

Comments

@SimpelMe
Copy link

SimpelMe commented Oct 31, 2020

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
Copy link
Author

That affects gl historytoo.

@SimpelMe SimpelMe changed the title gl diff: not working with diff-so-fancy gl diff: not working with diff-so-fancy and delta Oct 31, 2020
@SimpelMe SimpelMe changed the title gl diff: not working with diff-so-fancy and delta gl diff: not working with diff-so-fancy or delta Oct 31, 2020
@spderosso spderosso added the bug label Nov 8, 2020
goldstar611 added a commit to goldstar611/gitless that referenced this issue Feb 20, 2022
Send diff to pager via stdin not via file
goldstar611 added a commit to goldstar611/gitless that referenced this issue Feb 21, 2022
Send diff to pager via stdin not via file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants