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

Add color support for colorizing more parts of diff output #16

Closed
mbsulliv opened this issue Sep 23, 2011 · 1 comment
Closed

Add color support for colorizing more parts of diff output #16

mbsulliv opened this issue Sep 23, 2011 · 1 comment

Comments

@mbsulliv
Copy link

Can you add color support for colorizing the following additional parts of the diff output:

  • Lines containing only ---, which separate commit log output from diff-stat output
  • Diff lines beginning with --- a/
  • Diff lines beginning with +++ b/
  • Diff lines beginning with " " (a space, without the quotes), which are context lines in the diff output

I built from d59840e which is the HEAD on master at the moment.

jonas pushed a commit that referenced this issue Nov 21, 2011
This allows users to define custom color rules in their ~/.tigrc.
@jonas
Copy link
Owner

jonas commented Nov 21, 2011

With the referenced commit you can now add color rules such as in your ~/.tigrc:

color "--- a/" <fg> <bg>
color "--- b/" <fg> <bg>
color "---" <fg> <bg>
color " " <fg> <bg>

@jonas jonas closed this as completed Nov 21, 2011
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