Commits


let callers of got_pack_create() configure rate-limiting of progress reporting Needed by future gotd(8), where progress reports will be sent to a network socket, rather than a local terminal.


do not crash if no delta cache is present while parsing deltas


move privsep code from pack_create.c into new file pack_create_privsep.c Needed by future gotd(8). ok op@


handle unlink(2) errors for mergepath, tmppath, and apath in apply_patch() ok op@


introduce got_path_move_file(); based on code from lib/patch.c ok op@


check for unlink(2) errors and don't try to unlink an already renamed file ok op@


check for unlink(2) errors in got_opentempfd() ok op@


check for unlink(2) errors with the == -1 idiom, rather than != 0 ok op@


move got_opentempfd() call out of got_pack_create() Future gotd(8) needs to run got_pack_create() in a chroot environment, so we can no longer open new temporary files inside got_pack_create(). ok op@


make got_pack_create() write to a file descriptor instead of a stdio FILE The old code required a seekable output file. This conflicts with requirements of future gotd(8), which will write pack file data to network sockets. ok op@


simplify the way 'got patch' opens a tempfile when reading from stdin Also add basic test coverage for reading patches from stdin, while here. ok op@


remove accidentally committed debug assertion


move got_gotconfig_read() into new file read_gotconfig_privsep.c


remove unnecessary includes of got_lib_privsep.h


move declaration of got_privsep_child out of got_lib_privsep.h This declaration is the only reason why got_lib_privsep.h must be included in order to use got_lib_repository.h. Moving this declaration will allow for cleaning up unnecessary includes of got_lib_privsep.h.