@@ -80,8 +80,8 @@ wrap_patch(git_patch *patch)
8080 py_patch -> status = git_diff_status_char (delta -> status );
8181 py_patch -> similarity = delta -> similarity ;
8282 py_patch -> flags = delta -> flags ;
83- py_patch -> old_oid = git_oid_allocfmt (& delta -> old_file .oid );
84- py_patch -> new_oid = git_oid_allocfmt (& delta -> new_file .oid );
83+ py_patch -> old_id = git_oid_allocfmt (& delta -> old_file .id );
84+ py_patch -> new_id = git_oid_allocfmt (& delta -> new_file .id );
8585
8686 git_patch_line_stats (NULL , & additions , & deletions , patch );
8787 py_patch -> additions = additions ;
@@ -149,8 +149,8 @@ static void
149149Patch_dealloc (Patch * self )
150150{
151151 Py_CLEAR (self -> hunks );
152- free (self -> old_oid );
153- free (self -> new_oid );
152+ free (self -> old_id );
153+ free (self -> new_id );
154154 /* We do not have to free old_file_path and new_file_path, they will
155155 * be freed by git_diff_list_free in Diff_dealloc */
156156 PyObject_Del (self );
@@ -159,8 +159,8 @@ Patch_dealloc(Patch *self)
159159PyMemberDef Patch_members [] = {
160160 MEMBER (Patch , old_file_path , T_STRING , "old file path" ),
161161 MEMBER (Patch , new_file_path , T_STRING , "new file path" ),
162- MEMBER (Patch , old_oid , T_STRING , "old oid" ),
163- MEMBER (Patch , new_oid , T_STRING , "new oid" ),
162+ MEMBER (Patch , old_id , T_STRING , "old oid" ),
163+ MEMBER (Patch , new_id , T_STRING , "new oid" ),
164164 MEMBER (Patch , status , T_CHAR , "status" ),
165165 MEMBER (Patch , similarity , T_INT , "similarity" ),
166166 MEMBER (Patch , hunks , T_OBJECT , "hunks" ),
0 commit comments