Commits


add a diff output mode which produces simple ed(1) scripts


add a zero-context test and rename the -C option to -U (matches diff(1))


move headers from include/diff/ to include/; makes things easier for consumers


optionally provide information about the generated diff to the API user


convert 'ignore_whitespace' boolean into a more general flags argument


use buffered stdio if falling back on file i/o; this is much faster


remove another custom linux shim in favour of compat/ directory


enable -Wstrict-prototype and -Wunused-variable in Linux build


add a -C option which sets the amount of context lines in unified diffs


add support for ignoring whitespace (-w option) Tests grow the ability to call diff with options. Options to use are encoded in the test file name as a single dash followed by a string of option letters. E.g. -wp for 'ignore whitespace' and 'do patience'


avoid include statements in header files; make each .c pull in what's needed


replace enum diff_rc errors with plain errno values


fall back on file i/o in case an input file cannot be memory-mapped


KNF: use max 80 columns


diff cmdline tool: allow using Patience by -p arg


remove code dup of diff_main() invocation for plain vs unidiff


diff.c: move two #include to the top


myers: permit ~4Mb of state


switch default to unidiff


initial commit