-
Notifications
You must be signed in to change notification settings - Fork 396
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
allow to completely omit zero ("same") lines (like diff -U0
would do)
#1644
Comments
Hi Chris, ok I'm sorry to say something that sounds silly, but isn't the answer |
Hey Dan. Oh yes, I was thinking about the But your answer made me realise that I could at least get the behaviour via |
Right, my feeling has always been that it would be a mess to try to add the various diff options (actually git diff options) into delta's command-line parsing. [1] of course, this may have started out true but is not quite true any longer... we implemented support for things like
|
To justify "a mess" -- it's that delta at heart is really a tool that takes in diff / grep / blame input and outputs unparseable stuff to look at. And it has a pretty large collection of options for doing that! So one hesitates before adding options for generating the diff output. |
One way would perhaps be to add a single option, that allows passing any options to the actually used
Out of curiosity: Also if
Well I would probably do so, if the above idea isn't an alternative for you either. ;-) It does however make life at least a tin bit more complicated in usage, as one needs (at least in scripting) to check
I personally rather like the idea that Thanks, |
OK I think you're right, that seems to makes sense. Any interest in implementing? I have to admit I am low on spare programming time currently due to day job. (But trying to at least keep up with the nice PRs and issue suggestions that come in).
Actually no, not currently, but that would be an easy fix to make I think: Lines 26 to 30 in dcae5bc
|
Finally got around to implementing that at #1697 |
Thanks :-) |
Discussed in #1620
Originally posted by calestyo February 8, 2024
Hey.
I found no way to to disable the "surrounding" unmodified lines.
omit
doesn’t seem to work with--zero-style
and there doesn’t seem to be a counterpart todiff
’s-U0
.Is this somehow possible?
Thanks,
Chris.
The text was updated successfully, but these errors were encountered: