Re: [PATCH 02/10] ui-blob: replace 'unsigned char sha1[20]' with 'struct object_id oid'

2016-10-04 Thread Christian Hesse
"Jason A. Donenfeld" on Tue, 2016/10/04 21:24: > Ack'd. Pop em in a for-jason branch. Done. Please merge. -- main(a){char*c=/*Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/*Best regards my address:*/=0;b=c[a++];) putchar(b-1/(/*

Re: [PATCH 02/10] ui-blob: replace 'unsigned char sha1[20]' with 'struct object_id oid'

2016-10-04 Thread Jason A. Donenfeld
On Tue, Oct 4, 2016 at 9:51 AM, Christian Hesse wrote: > + hashcpy(walk_tree_ctx->matched_oid.hash, sha1); > + if (sha1_object_info(oid.hash, ) != OBJ_COMMIT) > + type = sha1_object_info(oid.hash, ); > + type = sha1_object_info(oid.hash, ); > +

[PATCH 02/10] ui-blob: replace 'unsigned char sha1[20]' with 'struct object_id oid'

2016-10-04 Thread Christian Hesse
From: Christian Hesse Upstream git is replacing 'unsigned char sha1[20]' with 'struct object_id oid'. We have some code that can be changed independent from upstream. So here we go... In addition replace memmove() with hashcpy(). Signed-off-by: Christian Hesse