diffr
diffr copied to clipboard
Yet another diff highlighting tool
On a diff with very long lines, diffr helps but reading unified diff is still hard. Implement a flag that wraps long lines before highlighting differences. This is almost as...
On the following example: ``` diff @ -fn func(a,b,c) { - x = g(a,b) - y = if x { - h(b,c) - } else { - 0 - }...
I'm not getting diffr highlighting when using `colordiff -y foo bar | diffr`. Would be neat to support that also.
It might be useful to highlight tab characters (if only for Makefiles). Also git allows to highlight trailing whitespaces, which is lost in diffr (because we trim all color codes).
It would be nice if `diffr` could support diff3 as generated by git during merges. Currently it simply ignores changes from on side.
Currently, diffs obtained from git with the --color-moved flag parsed and re-highlighted completely, and the code move special highlighting is lost. The color-moved information should be preserved.
It'd be handy to show a motivational side-by-side with `diff-highlight` (on the same diff) in the readme.
Refactoring aside, this fixes the problem when `--color-numbers` was followed by another option, such as for example `diffr --line-numbers --help`. Such combination of parameters would cause an error before this...
As far as I can tell, it seems like `diffr` is not aware of encodings in any way and simply operates on and compares individual bytes. (At least I haven’t...