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

Use git config color.diff for git diff pretty print #253

Open
vidartf opened this issue Feb 1, 2017 · 0 comments
Open

Use git config color.diff for git diff pretty print #253

vidartf opened this issue Feb 1, 2017 · 0 comments

Comments

@vidartf
Copy link
Collaborator

vidartf commented Feb 1, 2017

Git supports changing which colors to use for printing diffs through its config system, see https://git-scm.com/book/tr/v2/Customizing-Git-Git-Configuration (heading "Colors in Git") and http://shallowsky.com/blog/programming/gitcolors.html. We should consider using these in the git diff driver for pretty printing. At the very least we could check whether or not to use colors (git config colors.ui / git config colors.diff true/false/auto).

Partially related to #240.

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

1 participant