Commit Briefs
portable: include sha1.h portably
Don't directly include sha1.h as this isn't always in the same location across systems.
inline struct got_object_id in struct got_object_qid
Saves us from doing a malloc/free call for every item on the list. ok op@
portable: freebsd: portably include sha1
The SHA implementation is found portably across systems, so don't include sha1.h directly.
inline struct got_object_id in struct got_object_qid
Saves us from doing a malloc/free call for every item on the list. ok op@
portable: initial Linux compilation
This commit modifies the GoT main branch to be able to compile it under linux.
merge new diff implementation from the git.gameoftrees.org diff.git repository
This new diff implementation was started by Neels Hofmeyr during the u2k20 hackathon and now replaces diffreg.c code lifted from the OpenBSD base system. The integration of this code into Got was done by me. Got now uses the patience diff algorithm by default. The diff.git repository will remain the primary repository for the diff code, which already compiles and runs on other operating systems such as Linux. Any fixes and improvements for files inherited from the diff.git repository should be written against that repository and synced to got.git afterwards.
create temporary workaround to opening /dev/null during diffing.
this will need to be reworked later. ok stsp
Add missing includes for time() and ctime()
These headers were implicitly used on OpenBSD, but building on Linux revealed that <time.h> wasn't included directly. diffreg.c uses ctime(), which additionally needs <sys/types.h>.
Remove return value from diffreg's fetch()
The last use of this was removed in 0165cdf03ffac4c24334979832ad27554913d54c over a year ago.
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)