Commits


fix unidiff headers for empty files


fix line numbers in unidiff hunk headers and omit ",1"; matches diff(1)


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


repair DEBUG build


remove an unused variable


check results of ARRAYLIST_ADD


optionally provide information about the generated diff to the API user


store interal state of output_unidiff API in an opaque struct


move some definitions from the public diff_main.h to an internal header file


support output of individual diff chunks in the public API


rename 'debug.h' to 'diff_debug.h'


diff result: ensure sane order of result chunks Ensure that a adjacent chunks of same type are combined, and that a minus block always precedes an adjacent plus block. The upcoming myers-divide optimization is prone to produce weird ordering of plus and minus chunks.


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


replace enum diff_rc errors with plain errno values


move 'struct range' and related functions into the diff_ namespace no functional change


KNF: use max 80 columns


KNF: function declaration return types on separate line


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


Only print (unified) header in unified format.


diff_output_unidiff(): less indent by 'continue'


move struct range defs to diff_main.h (prep for upcoming patch)


initial commit