Re: [PATCH 5/5] rev-list: handle missing tree objects properly

2018-08-09 Thread Jonathan Tan
> @@ -209,7 +210,8 @@ static inline void finish_object__ma(struct object *obj) >*/ > switch (arg_missing_action) { > case MA_ERROR: > - die("missing blob object '%s'", oid_to_hex(&obj->oid)); > + die("missing %s object '%s'", > + type_name

[PATCH 5/5] rev-list: handle missing tree objects properly

2018-08-09 Thread Matthew DeVore
Previously, we assumed only blob objects could be missing. This patch makes rev-list handle missing trees like missing blobs. A missing tree will cause an error if --missing indicates an error should be caused, and the hash is printed even if the tree is missing. Signed-off-by: Matthew DeVore ---