-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bat --diff #940
bat --diff #940
Conversation
e0f930d
to
f1beb72
Compare
This adds a new `--diff` option that can be used to only show lines close to Git changes (added/removed/modified lines). The amount of additional context can be controlled with `--diff-context=N`. closes #23
f1beb72
to
b0be7f1
Compare
YASSS There is much win here. :) |
1e74ec7
to
ec6b4c9
Compare
Does it support |
no |
No, technically because this doesn't use Git config, but conceptually because...this doesn't display the |
This is great! Do you mind if I add a variant of your |
of course! 👍 |
Part of sharkdp#448 Thanks to sharkdp#940
This PR adds a new
--diff
option that can be used to only show lines close to Git changes, i.e. added, removed or modified lines.The amount of additional context can be controlled with
--diff-context=N
.Using this like
essentially results in a version of
git diff
with syntax highlighting (but without being able to see the old version).closes #23