@@ -440,7 +440,7 @@ static struct commit *handle_commit(struct rev_info *revs,
440
440
if (object -> type == OBJ_COMMIT ) {
441
441
struct commit * commit = (struct commit * )object ;
442
442
443
- if (parse_commit ( commit ) < 0 )
443
+ if (repo_parse_commit ( revs -> repo , commit ) < 0 )
444
444
die ("unable to parse commit %s" , name );
445
445
if (flags & UNINTERESTING ) {
446
446
mark_parents_uninteresting (commit );
@@ -1013,7 +1013,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
1013
1013
ts -> treesame [0 ] = 1 ;
1014
1014
}
1015
1015
}
1016
- if (parse_commit ( p ) < 0 )
1016
+ if (repo_parse_commit ( revs -> repo , p ) < 0 )
1017
1017
die ("cannot simplify commit %s (because of %s)" ,
1018
1018
oid_to_hex (& commit -> object .oid ),
1019
1019
oid_to_hex (& p -> object .oid ));
@@ -1058,7 +1058,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
1058
1058
* IOW, we pretend this parent is a
1059
1059
* "root" commit.
1060
1060
*/
1061
- if (parse_commit ( p ) < 0 )
1061
+ if (repo_parse_commit ( revs -> repo , p ) < 0 )
1062
1062
die ("cannot simplify commit %s (invalid %s)" ,
1063
1063
oid_to_hex (& commit -> object .oid ),
1064
1064
oid_to_hex (& p -> object .oid ));
@@ -1126,7 +1126,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
1126
1126
parent = parent -> next ;
1127
1127
if (p )
1128
1128
p -> object .flags |= UNINTERESTING ;
1129
- if (parse_commit_gently ( p , 1 ) < 0 )
1129
+ if (repo_parse_commit_gently ( revs -> repo , p , 1 ) < 0 )
1130
1130
continue ;
1131
1131
if (p -> parents )
1132
1132
mark_parents_uninteresting (p );
@@ -1157,7 +1157,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
1157
1157
struct commit * p = parent -> item ;
1158
1158
int gently = revs -> ignore_missing_links ||
1159
1159
revs -> exclude_promisor_objects ;
1160
- if (parse_commit_gently ( p , gently ) < 0 ) {
1160
+ if (repo_parse_commit_gently ( revs -> repo , p , gently ) < 0 ) {
1161
1161
if (revs -> exclude_promisor_objects &&
1162
1162
is_promisor_object (& p -> object .oid )) {
1163
1163
if (revs -> first_parent_only )
@@ -3337,7 +3337,7 @@ static void explore_walk_step(struct rev_info *revs)
3337
3337
if (!c )
3338
3338
return ;
3339
3339
3340
- if (parse_commit_gently ( c , 1 ) < 0 )
3340
+ if (repo_parse_commit_gently ( revs -> repo , c , 1 ) < 0 )
3341
3341
return ;
3342
3342
3343
3343
if (revs -> sort_order == REV_SORT_BY_AUTHOR_DATE )
@@ -3375,7 +3375,7 @@ static void indegree_walk_step(struct rev_info *revs)
3375
3375
if (!c )
3376
3376
return ;
3377
3377
3378
- if (parse_commit_gently ( c , 1 ) < 0 )
3378
+ if (repo_parse_commit_gently ( revs -> repo , c , 1 ) < 0 )
3379
3379
return ;
3380
3380
3381
3381
explore_to_depth (revs , commit_graph_generation (c ));
@@ -3457,7 +3457,7 @@ static void init_topo_walk(struct rev_info *revs)
3457
3457
struct commit * c = list -> item ;
3458
3458
uint32_t generation ;
3459
3459
3460
- if (parse_commit_gently ( c , 1 ))
3460
+ if (repo_parse_commit_gently ( revs -> repo , c , 1 ))
3461
3461
continue ;
3462
3462
3463
3463
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)
3521
3521
if (parent -> object .flags & UNINTERESTING )
3522
3522
continue ;
3523
3523
3524
- if (parse_commit_gently ( parent , 1 ) < 0 )
3524
+ if (repo_parse_commit_gently ( revs -> repo , parent , 1 ) < 0 )
3525
3525
continue ;
3526
3526
3527
3527
generation = commit_graph_generation (parent );
0 commit comments