Commit Briefs

87a3ab84d3 Omar Polo

provide functions to parse/serialize different hashes

it abstracts over the hash type and ensures that object ids are zero'ed before their sha1 digest is written. Needed by the incoming sha256 support. ok stsp@


53bf0b5419 Omar Polo

rename lib/sha1.c to lib/hash.c

It will soon grow functions to deal with sha256 too. stsp@ agrees.


5822e79e39 Omar Polo

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>



336075a42a Omar Polo

build with -Wmissing-prototypes

ok stsp@


7fb414ae4d Stefan Sperling

add a -q option to tests for quiet output and use it for 'make regress'

Previous default output remains when test cases are run individually. ok tracey


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)


5d56da8198 Stefan Sperling

happy new copyright year


9465d5226d Stefan Sperling

make C test output match cmdline test output


cb103d042c Stefan Sperling

allow got_object_idset_for_each() to return an error



2ff12563f8 Stefan Sperling

fix 'make PROFILE=1' build


6358180434 Stefan Sperling

rename zbuf to inflate


50bc349d77 Stefan Sperling

implement repository object cache via object_idset


788c352e1f Stefan Sperling

store commit timestamps as 'struct tm' in UTC




d5a90aac91 Stefan Sperling

return existing data if existing object id is added to set


c6f420bf7c Stefan Sperling

expose number of elements in an object id set


8392272eb9 Stefan Sperling

fail test gracefully instead of aborting


8e41b2f81b Stefan Sperling

check for NULL error return in idset test


ddb547b4ba Stefan Sperling

tests for object id sets