Commit Briefs

303e14b5e9 Stefan Sperling

Add missing includes for time() and ctime()

These headers were implicitly used on OpenBSD, but building on Linux revealed that <time.h> wasn't included directly. diffreg.c uses ctime(), which additionally needs <sys/types.h>.


83290b45b0 Stefan Sperling

Remove return value from diffreg's fetch()

The last use of this was removed in 0165cdf03ffac4c24334979832ad27554913d54c over a year ago.


8fbe07c208 Stefan Sperling

Remove unused variable in diffreg's fetch()


14ed98fdf9 Stefan Sperling

remove unused 'oldfile' parameter from diffreg.c's fetch()


dc424a06a9 Stefan Sperling

initial 'got stage -p' implementation


3043f6a395 Stefan Sperling

remove accidental assignment in diffreg.c


8cbe58099b Stefan Sperling

plug /dev/null file descriptor leaks in diffreg.c


638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


230a42bdc6 joshua stein

got_error_from_errno -> got_error_prefix_errno

also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)



fb43ecf150 Stefan Sperling

check for errors from fclose()


acb209ee71 Stefan Sperling

restore support for D_NORMAL diffs of regular files


4a8520aa6b Stefan Sperling

use a constant for max diff context size


404c43c4fa Stefan Sperling

basic 'got blame' implementation


c48ceb4cb5 Stefan Sperling

remove support for the ifdef diff format from diffreg



0165cdf03f Stefan Sperling

remove support for 'edit' diff output from diffreg


119f86008e Stefan Sperling

remove support for "normal" diff output from diffreg


84e118513c Stefan Sperling

remove support for context diffs from diffreg.c


a2a848a2c0 Stefan Sperling

remove ignore-lines pattern support from diffreg code


f5d549b5bd Stefan Sperling

adjust preadline() and ignoreline() to match diff(1) again


755142eaf1 Stefan Sperling

in diffreg.c, return value from preadline() must be freed


5a7ffad525 Stefan Sperling

always free ds->ixold and ds->ixmew in got_diffreg()


6b59e13c2c Stefan Sperling

always free ds->clist and ds->klist in got_diffreg()


7b366981c1 Stefan Sperling

always free ds->J in got_diffreg()