Commit Briefs

b90054ed55 Stefan Sperling

use mkstemps(3) instead of mkstemp(3) for opening named temporary files

Allows 'got commit' to use a ".diff" suffix for temporary diff files. ok op@


21017333f1 Stefan Sperling

check for unlink(2) errors in got_opentempfd()

ok op@


a558dd1be5 Stefan Sperling

reuse a temporary file across commits during got log -p -S

suggested by + ok op@



bb63914a95 Stefan Sperling

make tmp dir location a compile-time setting and change gotweb's tmp dir

We are not sure whether a gotweb package can own /var/www/tmp on OpenBSD. Moving gotweb's tmp dir to /var/www/got/tmp sidesteps that issue.


0d0c539eac joshua stein

got_opentemp_named: include path in error message


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)


507dc3bb12 Stefan Sperling

add a basic 'got update' command; does not merge files yet


0c92744a7b Stefan Sperling

initialize *outfile in got_opentemp_named()


511a516b74 Stefan Sperling

move got_opentmp* functions to public API; used from tog