5 years ago Stefan Sperling
don't close input files in got_diffreg(); callers will do that
check for errors from fclose()
restore support for D_NORMAL diffs of regular files
use a constant for max diff context size
6 years ago Stefan Sperling
basic 'got blame' implementation
remove support for the ifdef diff format from diffreg
remove REVERSE and NREVERSE diff output options from diffreg
remove support for 'edit' diff output from diffreg
remove support for "normal" diff output from diffreg
remove support for context diffs from diffreg.c
remove ignore-lines pattern support from diffreg code
adjust preadline() and ignoreline() to match diff(1) again
in diffreg.c, return value from preadline() must be freed
always free ds->ixold and ds->ixmew in got_diffreg()
always free ds->clist and ds->klist in got_diffreg()
always free ds->J in got_diffreg()
always free ds->member and ds->class in got_diffreg()
fix reallocarray error handling in diffreg.c
move diffreg's max_context into struct got_diff_state
6 years ago Theo Buehler
This way we grow the array instead of doing 64 <<= 1.
fix open file leaks in previous
check for fopen() failures in got_diffreg()
remove GOT_ERR_NO_MEM, we can just use errno in those cases
rename the library-internal headers again to a common prefix
rename library-private headers from *_priv.h to *_lib.h