3 years ago 984ca65b1b Neels Hofmeyr
myers_divide: fix "inifite" looping over same box
3 years ago 19fad31f2f Neels Hofmeyr
debug: diff_myers.c: #if DEBUG, not if (DEBUG)
3 years ago 1c2d4cc9a3 Neels Hofmeyr
fix ARRAYLIST_INSERT()
3 years ago 5ff759965e Neels Hofmeyr
debug: diff_output_unidiff(): debug list all chunks
3 years ago 13497fffa9 Neels Hofmeyr
fix diff_algo_none(): no NULL pointers for left_start and right_start
3 years ago 724967e914 Neels Hofmeyr
diff_state_add_chunk(): fix adding minus above plus chunk: wrong idx
3 years ago bb867e685c Neels Hofmeyr
debug tweaks for diff_state_add_chunk()
3 years ago 8ac34c07fc Neels Hofmeyr
diff_debug.h: drop unused vars
3 years ago 2146cf12c5 Neels Hofmeyr
diff_algo_none(): also detect equal lines at the end
3 years ago 41ff30f35e Neels Hofmeyr
cosmetic: diff_algo_none(): rename to equal_lines_start
3 years ago 467a993dc1 Neels Hofmeyr
cosmetic: diff_algo_none: local pointers for shorter code
3 years ago 359b29cbe1 Neels Hofmeyr
debug: fix "state size:" printing buf size
3 years ago 0c70b22b8b Neels Hofmeyr
cosmetic: indents in diff_main.h
3 years ago c254f08cfd Neels Hofmeyr
drop dangerous debug statement
3 years ago 0eddf39d25 Neels Hofmeyr
test016: find more minimal test failure
3 years ago d2dfa2ecef Stefan Sperling
fix unidiff output header in case both files have only one line
3 years ago ede9a86acb Stefan Sperling
fix edscript diff output for empty files
3 years ago 11d9f2f72d Stefan Sperling
fix unidiff headers for empty files
3 years ago b7ba71f0ee Stefan Sperling
add a diff output mode which produces simple ed(1) scripts
3 years ago 0c9a7e9d9f Stefan Sperling
add a zero-context test and rename the -C option to -U (matches diff(1))
3 years ago b6adedb6f9 Stefan Sperling
fix line numbers in unidiff hunk headers and omit ",1"; matches diff(1)
3 years ago fde86f3da9 Stefan Sperling
add missing curly braces (clang reported misleading indentation)
3 years ago 1dfba0555e Stefan Sperling
move headers from include/diff/ to include/; makes things easier for consumers
3 years ago fe8af0d6c0 Stefan Sperling
add helper functions for obtaining the start/end line numbers of a diff chunk
3 years ago 5e24137996 Stefan Sperling
disable debug by default again