@@ -374,7 +374,7 @@ void free_commit_list(struct commit_list *list)
374374 }
375375}
376376
377- struct commit_list * insert_by_date (struct commit * item , struct commit_list * * list )
377+ struct commit_list * commit_list_insert_by_date (struct commit * item , struct commit_list * * list )
378378{
379379 struct commit_list * * pp = list ;
380380 struct commit_list * p ;
@@ -388,11 +388,11 @@ struct commit_list * insert_by_date(struct commit *item, struct commit_list **li
388388}
389389
390390
391- void sort_by_date (struct commit_list * * list )
391+ void commit_list_sort_by_date (struct commit_list * * list )
392392{
393393 struct commit_list * ret = NULL ;
394394 while (* list ) {
395- insert_by_date ((* list )-> item , & ret );
395+ commit_list_insert_by_date ((* list )-> item , & ret );
396396 * list = (* list )-> next ;
397397 }
398398 * list = ret ;
@@ -412,7 +412,7 @@ struct commit *pop_most_recent_commit(struct commit_list **list,
412412 struct commit * commit = parents -> item ;
413413 if (!parse_commit (commit ) && !(commit -> object .flags & mark )) {
414414 commit -> object .flags |= mark ;
415- insert_by_date (commit , list );
415+ commit_list_insert_by_date (commit , list );
416416 }
417417 parents = parents -> next ;
418418 }
@@ -501,7 +501,7 @@ void sort_in_topological_order(struct commit_list ** list, int lifo)
501501
502502 /* process the list in topological order */
503503 if (!lifo )
504- sort_by_date (& work );
504+ commit_list_sort_by_date (& work );
505505
506506 pptr = list ;
507507 * list = NULL ;
@@ -527,7 +527,7 @@ void sort_in_topological_order(struct commit_list ** list, int lifo)
527527 */
528528 if (-- parent -> indegree == 1 ) {
529529 if (!lifo )
530- insert_by_date (parent , & work );
530+ commit_list_insert_by_date (parent , & work );
531531 else
532532 commit_list_insert (parent , & work );
533533 }
@@ -587,10 +587,10 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
587587 }
588588
589589 one -> object .flags |= PARENT1 ;
590- insert_by_date (one , & list );
590+ commit_list_insert_by_date (one , & list );
591591 for (i = 0 ; i < n ; i ++ ) {
592592 twos [i ]-> object .flags |= PARENT2 ;
593- insert_by_date (twos [i ], & list );
593+ commit_list_insert_by_date (twos [i ], & list );
594594 }
595595
596596 while (interesting (list )) {
@@ -608,7 +608,7 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
608608 if (flags == (PARENT1 | PARENT2 )) {
609609 if (!(commit -> object .flags & RESULT )) {
610610 commit -> object .flags |= RESULT ;
611- insert_by_date (commit , & result );
611+ commit_list_insert_by_date (commit , & result );
612612 }
613613 /* Mark parents of a found merge stale */
614614 flags |= STALE ;
@@ -622,7 +622,7 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
622622 if (parse_commit (p ))
623623 return NULL ;
624624 p -> object .flags |= flags ;
625- insert_by_date (p , & list );
625+ commit_list_insert_by_date (p , & list );
626626 }
627627 }
628628
@@ -632,7 +632,7 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
632632 while (list ) {
633633 struct commit_list * next = list -> next ;
634634 if (!(list -> item -> object .flags & STALE ))
635- insert_by_date (list -> item , & result );
635+ commit_list_insert_by_date (list -> item , & result );
636636 free (list );
637637 list = next ;
638638 }
@@ -725,7 +725,7 @@ struct commit_list *get_merge_bases_many(struct commit *one,
725725 result = NULL ;
726726 for (i = 0 ; i < cnt ; i ++ ) {
727727 if (rslt [i ])
728- insert_by_date (rslt [i ], & result );
728+ commit_list_insert_by_date (rslt [i ], & result );
729729 }
730730 free (rslt );
731731 return result ;
0 commit comments