Commit Briefs

4fccd2fe0f Thomas Adam

portable: configure: split out dependencies

Rather than assume all dependencies are required for all programs, split them out. This will make packaging easier, as well as splitting the code to use subprojects. Note that due to the use of config.h semantics, in most cases the got_compat.h header file is now at the top of the .c file it is included in, so that it can handle the system header inclusion properly.


98670ba726 Thomas Adam

portable: rework SHA detection

Simply the SHA detection by not predicating on libcrypto, but instead checking individual header files.


4680f70435 Thomas Adam

portable: remove sha1.h; found portably

Remove sha1.h as this is found portably across systems.


588a8092bc Thomas Adam

include sha2.h too where sha1.h is included

In preparation for wide sha256 support; stsp@ agrees. Change done mechanically with find . -iname \*.[cy] -exec sam {} + X ,x/<sha1\.h>/i/\n#include <sha2.h>


8b925c6ccd Thomas Adam

portable: add back sys/queue.h

Now that the handling of including sys/queue.h is better, there's no need to remove those lines from the source. Copy the location of those original sys/queue.h lines from upstream at the same line number, so as to avoid any conflicts in the future.


92a9e85d28 Thomas Adam

portable: add FreeBSD support

This adds the capability to compile got-portable on FreeBSD.


dd038bc6ec Thomas Adam

portable: initial Linux compilation

This commit modifies the GoT main branch to be able to compile it under linux.


dbdddfee14 Christian Weisgerber

switch from SIMPLEQ to equivalent STAILQ macros

The singly-linked tail queue macros were added to OpenBSD 6.9 and are more widely available on other systems. ok stsp


9069347b69 Stefan Sperling

improve error reporting when delta application fails


56b63ca4ab Stefan Sperling

make fclose(3) failure checks consistent; check 'fclose() == EOF' everywhere

ok millert, naddy


56e0773df7 Stefan Sperling

convert tree entries from SIMPLEQ to an array




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)


324d37e7c7 Stefan Sperling

make got path APIs available to library consumers


fb43ecf150 Stefan Sperling

check for errors from fclose()


15a949835c Stefan Sperling

remove struct got_object from public library API


b2f7af546d Stefan Sperling

check for size_t overflow in got_delta_apply_in_mem()

like libgit2's c15771104 (delta: fix overflow when computing limit)


34fca9c35c Stefan Sperling

bounds checks before memcpy in got_delta_apply_in_mem()


14118581d8 Stefan Sperling

no need to zero got_delta during allocation


c336f88938 Stefan Sperling

don't store copies of packfile paths in each delta


6358180434 Stefan Sperling

rename zbuf to inflate


788c352e1f Stefan Sperling

store commit timestamps as 'struct tm' in UTC


72eb343178 Stefan Sperling

look up deltas in the correct pack file