http: use struct object_id instead of bare sha1
authorJeff King <peff@peff.net>
Mon, 7 Jan 2019 08:34:40 +0000 (03:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Jan 2019 17:40:19 +0000 (09:40 -0800)
commitf0be0db13dbd2d96d2240374e0e9cb106bf6a614
tree147863f80da336ff3108e84d1e5c4b37a167cb97
parentc93206b412dade4e480588ad5902f4b950d908ab
http: use struct object_id instead of bare sha1

The dumb-http walker code still passes around and stores object ids as
"unsigned char *sha1". Let's modernize it.

There's probably still more work to be done to handle dumb-http fetches
with a new, larger hash. But that can wait; this is enough that we can
now convert some of the low-level object routines that we call into from
here (and in fact, some of the "oid.hash" references added here will be
further improved in the next patch).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c
http-walker.c
http.c
http.h