-
Notifications
You must be signed in to change notification settings - Fork 330
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
Doesn't work correctly when calling 'git --no-pager diff' #279
Comments
I'm a little confused here... Are you implying that d-s-f is setting You can grep the d-s-f code for |
My screenshot is a bit confusing. The aliases are mine, and the repo and file shown are arbitrary. I wanted to show that using It can be avoided by removing without |
I'm still not following 100% but it's starting to make more sense. The top screenshot is a vanilla Ultimately this is not a d-s-f problem. It appears to be more of "git not calling d-s-f" problem. I'd investigate git, or your shell? I'm not sure what would cause |
I stand corrected! I just tested
Perhaps we need another alias for no-pager? I'm not super familiar with git aliases though. |
For what it's worth, The issue is that the internal git alias for |
I think even just mentioning it in the readme would be useful, I reckon that's where people first look if something isn't working. |
To have the correct behavior, I think you can use the following alias:
Using it like: |
@mortenfyhn if you write the doc update to explain this (you understand it better than I do) I'll gladly merge it. |
Looks like this is fixed... perhaps a documentation update is needed. If someone writes up the doc updates I'll land them. |
First of all, thanks for this tool, I like it a lot.
So, maybe this is the expected behaviour. I'm using zsh, which by default activates the pager when running
git diff
. I don't like that, so my git diff aliases use the--no-pager
option. From what I see, diff-so-fancy disables the pager again. I think it would then be better if runninggit diff
andgit --no-pager diff
produced the same output.You can see here what I'm getting:
EDIT: I see now that diff-so-fancy uses the pager only when the diff doesn't fit in the terminal window, but I guess the issue still is valid.
The text was updated successfully, but these errors were encountered: