Commits


do not leak open file in diff3.c's readin() error paths


do not abuse d3s->fp[0] as a local variable in diff3.c's readin()


remove unused 'pr' argument from diff3.c's skip() function


more mechanical conversions to struct got_error: buf_load() and buf_alloc()


some whitespace fixes in diff3.c


check for errors from buf_append() in diff3.c's diff_output()


remove pointless debug code from diff3.c


eflag in diff3.c is hard-coded to 3; remove code for other cases


check for errors from fseek(3) in diff3.c's edscript()


check for errors from diff_output() in diff3.c


convert remaining functions in diff3.c to struct got_error


convert error handling in diff3.c's repos() to struct got_error


convert handling in diff3.c's merge() function to struct got_error


getline: fix the return type to ssize_t and small nits


remove pointless oflag from struct diff3_state


Replace fgetln() with getline() getline() is, per the latter's OpenBSD man page, safer and more portable than fgetln().


sync merge(1) fix diff from OpenRCS/OpenCVS


fix merge bug inherited from OpenRCS, affecting lines with leading .


rename got_error_prefix_errno() to got_error_from_errno()


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)


declare conflict marker strings in got_lib_diff.h


check for errors from fclose()


check for fflush() errors


allow callers of diff3 code to detect merge conflicts


diff3: make labels work and fix leaks