Commits


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


expand stupid argv-style parameters of merge_diff3()


check for errors from increase() in diff3 code


move more globals into diff state struct


fix known file descriptor leaks in diff3 code


this is library code; store diff3 state in a struct, not globals


make diff3 code compile


add unmodified buf.c, buf.h, and diff3.c from OpenRCS