News for hackers. Stuff that matters.
Re:Show HN: A syntax highlighter for Git and diff output, wr... by OJFord on Monday April 27, 2020 @02:58PM (#22998791)
Looks like it works 'properly' in the sense that it does all that it can (colouring, incl. syntax highlighting, which d-s-f never does) without making the result wonky.

The core issue is the same for delta as it is for d-s-f (or any other interactive pager) - there must be a 1:1 correspondence between lines out from git, and lines back into it.

So, delta can do the fancier colouring interactively, but it can't mess with the header either, for the same underlying reason. (And so 'solved' it with a `--color-only` flag.)

There are no comments on this comment yet.