Commit Briefs

Stefan Sperling

expose the reflist_insert() helper function as got_reflist_insert()

This will be needed by 'gotadmin pack'.



Stefan Sperling

allow the delta base file to lose its header between deltify_init and deltify

This simplifies pack file creation. A delta base could be read from a loose object, a packfile, or it might be available in a temporary file. All these cases can now be handled the same way. We may need to open, close, and re-open a given delta base multiple times while packing.




Stefan Sperling

raw object size should not include the length of the object's header

This way, the size of a raw object is the same regardless of whether the object was found in a loose object file or in a pack file.


Stefan Sperling

introduce got_object_id_queue_copy()

This will be required by a future 'gotadmin pack' command.


Stefan Sperling

add a user data pointer to struct got_object_qid

This will be required by a future 'gotadmin pack' command.



Stefan Sperling

typo


Stefan Sperling

document how profiling works



Stefan Sperling

unveil gmon.out if gotweb is being profiled

ok tracey


Stefan Sperling

use socketpair(2) instead of pipe(2) for bi-directional communication

On Linux, pipes returned from pipe(2) only work in one direction. This broke 'got clone' over ssh in the -portable version because got-fetch-pack assumes it can use its fetchfd for both reading and writing. I wrote a complicated diff to use two pipe(2) calls instead of one, but millert suggested a simpler solution: Use socketpair(2) instead of pipe(2). ok millert jrick tracey