@@ -440,7 +440,7 @@ static struct commit *handle_commit(struct rev_info *revs,
440440 if (object -> type == OBJ_COMMIT ) {
441441 struct commit * commit = (struct commit * )object ;
442442
443- if (parse_commit ( commit ) < 0 )
443+ if (repo_parse_commit ( revs -> repo , commit ) < 0 )
444444 die ("unable to parse commit %s" , name );
445445 if (flags & UNINTERESTING ) {
446446 mark_parents_uninteresting (commit );
@@ -1013,7 +1013,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
10131013 ts -> treesame [0 ] = 1 ;
10141014 }
10151015 }
1016- if (parse_commit ( p ) < 0 )
1016+ if (repo_parse_commit ( revs -> repo , p ) < 0 )
10171017 die ("cannot simplify commit %s (because of %s)" ,
10181018 oid_to_hex (& commit -> object .oid ),
10191019 oid_to_hex (& p -> object .oid ));
@@ -1058,7 +1058,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
10581058 * IOW, we pretend this parent is a
10591059 * "root" commit.
10601060 */
1061- if (parse_commit ( p ) < 0 )
1061+ if (repo_parse_commit ( revs -> repo , p ) < 0 )
10621062 die ("cannot simplify commit %s (invalid %s)" ,
10631063 oid_to_hex (& commit -> object .oid ),
10641064 oid_to_hex (& p -> object .oid ));
@@ -1126,7 +1126,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
11261126 parent = parent -> next ;
11271127 if (p )
11281128 p -> object .flags |= UNINTERESTING ;
1129- if (parse_commit_gently ( p , 1 ) < 0 )
1129+ if (repo_parse_commit_gently ( revs -> repo , p , 1 ) < 0 )
11301130 continue ;
11311131 if (p -> parents )
11321132 mark_parents_uninteresting (p );
@@ -1157,7 +1157,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
11571157 struct commit * p = parent -> item ;
11581158 int gently = revs -> ignore_missing_links ||
11591159 revs -> exclude_promisor_objects ;
1160- if (parse_commit_gently ( p , gently ) < 0 ) {
1160+ if (repo_parse_commit_gently ( revs -> repo , p , gently ) < 0 ) {
11611161 if (revs -> exclude_promisor_objects &&
11621162 is_promisor_object (& p -> object .oid )) {
11631163 if (revs -> first_parent_only )
@@ -3337,7 +3337,7 @@ static void explore_walk_step(struct rev_info *revs)
33373337 if (!c )
33383338 return ;
33393339
3340- if (parse_commit_gently ( c , 1 ) < 0 )
3340+ if (repo_parse_commit_gently ( revs -> repo , c , 1 ) < 0 )
33413341 return ;
33423342
33433343 if (revs -> sort_order == REV_SORT_BY_AUTHOR_DATE )
@@ -3375,7 +3375,7 @@ static void indegree_walk_step(struct rev_info *revs)
33753375 if (!c )
33763376 return ;
33773377
3378- if (parse_commit_gently ( c , 1 ) < 0 )
3378+ if (repo_parse_commit_gently ( revs -> repo , c , 1 ) < 0 )
33793379 return ;
33803380
33813381 explore_to_depth (revs , commit_graph_generation (c ));
@@ -3457,7 +3457,7 @@ static void init_topo_walk(struct rev_info *revs)
34573457 struct commit * c = list -> item ;
34583458 uint32_t generation ;
34593459
3460- if (parse_commit_gently ( c , 1 ))
3460+ if (repo_parse_commit_gently ( revs -> repo , c , 1 ))
34613461 continue ;
34623462
34633463 test_flag_and_insert (& info -> explore_queue , c , TOPO_WALK_EXPLORED );
@@ -3521,7 +3521,7 @@ static void expand_topo_walk(struct rev_info *revs, struct commit *commit)
35213521 if (parent -> object .flags & UNINTERESTING )
35223522 continue ;
35233523
3524- if (parse_commit_gently ( parent , 1 ) < 0 )
3524+ if (repo_parse_commit_gently ( revs -> repo , parent , 1 ) < 0 )
35253525 continue ;
35263526
35273527 generation = commit_graph_generation (parent );
0 commit comments