3 years ago Stefan Sperling
fix edscript diff output for empty files
fix unidiff headers for empty files
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))
fix line numbers in unidiff hunk headers and omit ",1"; matches diff(1)
add missing curly braces (clang reported misleading indentation)
move headers from include/diff/ to include/; makes things easier for consumers
add helper functions for obtaining the start/end line numbers of a diff chunk
disable debug by default again
repair DEBUG build
add a test case to trigger a bug where diff chunks grow way too much context
fix operator-precedence bug in previous commit bf11ce0e
update arraylist's allocated counter only if the allocation succeeds
remove an unused variable
do not clobber the arraylist head if recallocarray fails
check results of ARRAYLIST_ADD
check return value of diff_output_lines
optionally provide information about the generated diff to the API user
add APIs to write out the left and right versions of diff chunks
store interal state of output_unidiff API in an opaque struct
convert 'ignore_whitespace' boolean into a more general flags argument
remove now redundant declaration from diff_main.h
move some definitions from the public diff_main.h to an internal header file
support output of individual diff chunks in the public API
fix segfault which occurred with empty input files