[PATCH 02/10] ui-blob: replace 'unsigned char sha1[20]' with 'struct object_id oid'
Jason A. Donenfeld
Jason at zx2c4.com
Tue Oct 4 10:07:23 CEST 2016
On Tue, Oct 4, 2016 at 9:51 AM, Christian Hesse <list at eworm.de> wrote:
> + hashcpy(walk_tree_ctx->matched_oid.hash, sha1);
> + if (sha1_object_info(oid.hash, &size) != OBJ_COMMIT)
> + type = sha1_object_info(oid.hash, &size);
> + type = sha1_object_info(oid.hash, &size);
> + buf = read_sha1_file(oid.hash, &type, &size);
> + type = sha1_object_info(oid.hash, &size);
> + buf = read_sha1_file(oid.hash, &type, &size);
Presumably upstream git doesn't have an oid family of functions for these yet?
More information about the CGit
mailing list