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

colors not showing up #3

Closed
tnguyen14 opened this issue Feb 5, 2016 · 3 comments
Closed

colors not showing up #3

tnguyen14 opened this issue Feb 5, 2016 · 3 comments

Comments

@tnguyen14
Copy link
Contributor

I added the colors for diff-highlight in my .gitconfig as instructed, however the output of git diff | diff-highlight does not output any colors.

Could there be something that I am missing here?

@stevemao
Copy link
Member

stevemao commented Feb 8, 2016

git diff --color | diff-highlight should work.
But I use git config --global core.pager "diff-highlight | diff-so-fancy | less -r" so any diff related commands will use diff-so-fancy :)

@stevemao stevemao closed this as completed Feb 8, 2016
@tnguyen14
Copy link
Contributor Author

Thank you. Using the --color flag worked.

When I tried the config to setting core.pager as you suggested, I see an issue with indentation being off, as such:

@@ -68,6 +68,7 @@
        whitespace = space-before-tab,indent-with-non-tab,trailing-space
        quotepath = false
        editor = vim
  pager = diff-highlight | diff-so-fancy | less -r
        # editor = subl -n -w

@stevemao
Copy link
Member

stevemao commented Feb 8, 2016

Can you open another issue if it's not related to your original one? It would be helpful if you could include a screenshot. Thanks.

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