3 years ago Neels Hofmeyr
fix ARRAYLIST_INSERT()
debug: diff_output_unidiff(): debug list all chunks
fix diff_algo_none(): no NULL pointers for left_start and right_start
diff_state_add_chunk(): fix adding minus above plus chunk: wrong idx
debug tweaks for diff_state_add_chunk()
diff_debug.h: drop unused vars
diff_algo_none(): also detect equal lines at the end
cosmetic: diff_algo_none(): rename to equal_lines_start
cosmetic: diff_algo_none: local pointers for shorter code
debug: fix "state size:" printing buf size
cosmetic: indents in diff_main.h
drop dangerous debug statement
test016: find more minimal test failure
3 years ago Stefan Sperling
fix unidiff output header in case both files have only one line
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