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

Hunk style line number references #97

Closed
luisdavim opened this issue Feb 14, 2020 · 2 comments
Closed

Hunk style line number references #97

luisdavim opened this issue Feb 14, 2020 · 2 comments

Comments

@luisdavim
Copy link

Would it be possible to add an option to use the --hunk-style box or underline but keep the string format the same as plain, including the line number references (ex: @@ -193,7 +199,9 @@ )?

@dandavison
Copy link
Owner

Hi @luisdavim, thanks for opening this. On master you can now do e.g.

--hunk-header-style=raw --hunk-header-decoration-style='blue box'

raw means that the text is unchanged and the original colors from git come through, so you can control the color using the color.diff.frag section of ~/.gitconfig. E.g.

$ git -c color.diff.frag='' show 0ff1a jedi/evaluate/names.py
image
$ git -c color.diff.frag='red bold' show 0ff1a jedi/evaluate/names.py
image
$ git -c color.diff.frag='red #dddddd' show 0ff1a jedi/evaluate/names.py
image

See #205 for full details of the new options.

@luisdavim
Copy link
Author

That's awesome, 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