Commits


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


initialize temp_files in got_merge_diff3()


make readin() actually write to its output argument


get rid of an unused global in diff3 code


get rid of another global in diff3 code (diff output buffer)


declare got_merge_diff3()


wrap overlong long line and fix NULL-deref in merge_diff3()


make diff3_merge() write result to an output file