libdiff: Implement diff coloring.This patch got accidentally left out when libdiff was imported. Therest of the code (command-line option etc.) was present, just not thepart that actually prints
libdiff: Implement diff coloring.This patch got accidentally left out when libdiff was imported. Therest of the code (command-line option etc.) was present, just not thepart that actually prints ANSI color codes.Sponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D46873
show more ...
libdiff: Detect and recover from file truncation.If a memory-mapped file is truncated before we get to the end, theatomizer may catch SIGBUS. Detect that, reduce the input length towhat we were
libdiff: Detect and recover from file truncation.If a memory-mapped file is truncated before we get to the end, theatomizer may catch SIGBUS. Detect that, reduce the input length towhat we were actually able to read, and set a flag so the caller cantake further action (e.g. warn the user and / or start over).Sponsored by: Klara, Inc.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D45217
Add 'contrib/libdiff/' from commit '9eb461aa4b61ab47855b2cee9e5b626a76888b5e'git-subtree-dir: contrib/libdiffgit-subtree-mainline: f6d489f402c320f1a6eaa473491a0b8c3878113egit-subtree-split: 9eb46
Add 'contrib/libdiff/' from commit '9eb461aa4b61ab47855b2cee9e5b626a76888b5e'git-subtree-dir: contrib/libdiffgit-subtree-mainline: f6d489f402c320f1a6eaa473491a0b8c3878113egit-subtree-split: 9eb461aa4b61ab47855b2cee9e5b626a76888b5eReviewed by: impSponsored by: Klara, Inc.