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

Show example of how to configure git to use diffr by default? #67

Closed
jedahan opened this issue Oct 23, 2020 · 3 comments
Closed

Show example of how to configure git to use diffr by default? #67

jedahan opened this issue Oct 23, 2020 · 3 comments

Comments

@jedahan
Copy link

jedahan commented Oct 23, 2020

I was able to use GIT_PAGER=diffr but then its not actually paging. Would be cool to see some examples of how to do this.

@waldyrious
Copy link
Contributor

@jedahan are you perhaps looking for this?

I prefer setting configs via the command line than by editing the gitconfig file, so here's how I did it in my experiments:

git config --global core.pager 'diffr | less -R'

or, to use something more elaborate:

git config --global core.pager 'diffr --colors refine-removed:foreground:black:nobold --colors refine-added:foreground:black:nobold | less -RXF'

I agree that having examples like these in the README would be helpful.

@waldyrious
Copy link
Contributor

See also #41 and #62.

@jedahan
Copy link
Author

jedahan commented Oct 23, 2020

I am blind; yes that works, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants