go-cmp icon indicating copy to clipboard operation
go-cmp copied to clipboard

Adjust heuristic for line-based versus byte-based diffing

Open dsnet opened this issue 3 years ago • 1 comments

If the string has many characters that require escape sequences to print, then we need to take that into consideration and avoid byte-by-byte diffing.

dsnet avatar Jun 29 '22 23:06 dsnet

Friendly ping @neild

dsnet avatar Jul 13 '22 17:07 dsnet

Friendly ping @neild .

We're using cmp to display some diffs of things at Tailscale and this would improve the verbosity of that service.

dsnet avatar Sep 02 '22 16:09 dsnet