From cedfc41ac62c691557263a8db41f7f693914d68d Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Sat, 6 May 2017 22:10:21 +0000 Subject: Convert struct ref_array_item to struct object_id Convert struct ref_array_item to use struct object_id by changing the definition and applying the following semantic patch, plus the standard object_id transforms: @@ struct ref_array_item E1; @@ - E1.objectname + E1.objectname.hash @@ struct ref_array_item *E1; @@ - E1->objectname + E1->objectname.hash This transformation allows us to convert get_obj, which is needed to convert parse_object_buffer. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- ref-filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ref-filter.h') diff --git a/ref-filter.h b/ref-filter.h index c20167aa3..6552024f0 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -34,7 +34,7 @@ struct ref_sorting { }; struct ref_array_item { - unsigned char objectname[20]; + struct object_id objectname; int flag; unsigned int kind; const char *symref; -- cgit v1.2.1