[PATCH v2 34/36] Convert lookup_replace_object to struct object_id

2018-02-25 Thread brian m. carlson
Convert both the argument and the return value to be pointers to struct object_id. Update the callers and their internals to deal with the new type. Remove several temporaries which are no longer needed. Signed-off-by: brian m. carlson --- builtin/mktag.c | 7 ++- cache.h | 8 +

Re: [PATCH v2 34/36] Convert lookup_replace_object to struct object_id

2018-02-26 Thread Duy Nguyen
On Mon, Feb 26, 2018 at 4:12 AM, brian m. carlson wrote: > diff --git a/sha1_file.c b/sha1_file.c > index 7493bc7f11..c41fbe2f01 100644 > --- a/sha1_file.c > +++ b/sha1_file.c > @@ -1227,22 +1227,18 @@ int oid_object_info_extended(const struct object_id > *oid, struct object_info *oi > st