@@ -408,7 +408,8 @@ static int commit_parse(git_commit *commit, const char *data, size_t size, unsig
408408
409409 /* The tree is always the first field */
410410 if (!(flags & GIT_COMMIT_PARSE_QUICK )) {
411- if (git_oid__parse (& commit -> tree_id , & buffer , buffer_end , "tree " ) < 0 )
411+ if (git_object__parse_oid_header (& commit -> tree_id ,
412+ & buffer , buffer_end , "tree " ) < 0 )
412413 goto bad_buffer ;
413414 } else {
414415 size_t tree_len = strlen ("tree " ) + GIT_OID_SHA1_HEXSIZE + 1 ;
@@ -421,7 +422,8 @@ static int commit_parse(git_commit *commit, const char *data, size_t size, unsig
421422 * TODO: commit grafts!
422423 */
423424
424- while (git_oid__parse (& parent_id , & buffer , buffer_end , "parent " ) == 0 ) {
425+ while (git_object__parse_oid_header (& parent_id ,
426+ & buffer , buffer_end , "parent " ) == 0 ) {
425427 git_oid * new_id = git_array_alloc (commit -> parent_ids );
426428 GIT_ERROR_CHECK_ALLOC (new_id );
427429
@@ -566,7 +568,7 @@ const char *git_commit_summary(git_commit *commit)
566568 while (* next && git__isspace_nonlf (* next )) {
567569 ++ next ;
568570 }
569- if (!* next || * next == '\n' )
571+ if (!* next || * next == '\n' )
570572 break ;
571573 }
572574 /* record the beginning of contiguous whitespace runs */
0 commit comments