Re: [PATCH v3 04/14] dir: convert struct sha1_stat to use object_id

2018-01-24 Thread Junio C Hamano
Patryk Obara writes: > Convert the declaration of struct sha1_stat. Adjust all usages of this > struct and replace hash{clr,cmp,cpy} with oid{clr,cmp,cpy} wherever > possible. Rename it to struct oid_stat. OK, but a hunk like this makes readers wonder... > -static int do_read_blob(const struct

[PATCH v3 04/14] dir: convert struct sha1_stat to use object_id

2018-01-24 Thread Patryk Obara
Convert the declaration of struct sha1_stat. Adjust all usages of this struct and replace hash{clr,cmp,cpy} with oid{clr,cmp,cpy} wherever possible. Rename it to struct oid_stat. Remove macro EMPTY_BLOB_SHA1_BIN, as it's no longer used. Signed-off-by: Patryk Obara --- cache.h