Commit Briefs


Omar Polo

bubble up the algo argument



Omar Polo

rename pack{file,idx}_sha1 to _hash


Omar Polo

rename "sha1" field to "hash"

done with X ,x/\.sha1/c/hash X ,x/->sha1/c/->hash in sam after loading all the C files; except for one manual tweak in hash.c


Omar Polo

add got_repo_get_object_format()

...and use it to avoid hardcoding the algo in a few places.


Omar Polo

inflate: support sha256



Omar Polo

add functions to compute hashes

This adds a set of functions to abstract over SHA1Init, SHA1Update, SHA1Final, their respective SHA256 variants and how to compare digests. It's a preparatory step for sha256 pack handling.


Omar Polo

provide functions to parse/serialize sha256 digest plus a generic helper

it abstracts over the hash type. Needed by the incoming sha256 support.


Omar Polo

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



Omar Polo

lib/object_create.c: calloc object ids

future fields added to the got_object_id will be implicitly zeroed instead of gibberish. ok stsp@


Tracey Emery

gotwebd: abort tree and blob as well


Omar Polo

gotwebd: abort blame if the client disconnect midway thru

Without setting err when the callback fails we continue the blame machinery.