@@ -360,7 +360,7 @@ void free_commit_list(struct commit_list *list)
360360 }
361361}
362362
363- struct commit_list * insert_by_date (struct commit * item , struct commit_list * * list )
363+ struct commit_list * commit_list_insert_by_date (struct commit * item , struct commit_list * * list )
364364{
365365 struct commit_list * * pp = list ;
366366 struct commit_list * p ;
@@ -374,11 +374,11 @@ struct commit_list * insert_by_date(struct commit *item, struct commit_list **li
374374}
375375
376376
377- void sort_by_date (struct commit_list * * list )
377+ void commit_list_sort_by_date (struct commit_list * * list )
378378{
379379 struct commit_list * ret = NULL ;
380380 while (* list ) {
381- insert_by_date ((* list )-> item , & ret );
381+ commit_list_insert_by_date ((* list )-> item , & ret );
382382 * list = (* list )-> next ;
383383 }
384384 * list = ret ;
@@ -398,7 +398,7 @@ struct commit *pop_most_recent_commit(struct commit_list **list,
398398 struct commit * commit = parents -> item ;
399399 if (!parse_commit (commit ) && !(commit -> object .flags & mark )) {
400400 commit -> object .flags |= mark ;
401- insert_by_date (commit , list );
401+ commit_list_insert_by_date (commit , list );
402402 }
403403 parents = parents -> next ;
404404 }
@@ -487,7 +487,7 @@ void sort_in_topological_order(struct commit_list ** list, int lifo)
487487
488488 /* process the list in topological order */
489489 if (!lifo )
490- sort_by_date (& work );
490+ commit_list_sort_by_date (& work );
491491
492492 pptr = list ;
493493 * list = NULL ;
@@ -513,7 +513,7 @@ void sort_in_topological_order(struct commit_list ** list, int lifo)
513513 */
514514 if (-- parent -> indegree == 1 ) {
515515 if (!lifo )
516- insert_by_date (parent , & work );
516+ commit_list_insert_by_date (parent , & work );
517517 else
518518 commit_list_insert (parent , & work );
519519 }
@@ -573,10 +573,10 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
573573 }
574574
575575 one -> object .flags |= PARENT1 ;
576- insert_by_date (one , & list );
576+ commit_list_insert_by_date (one , & list );
577577 for (i = 0 ; i < n ; i ++ ) {
578578 twos [i ]-> object .flags |= PARENT2 ;
579- insert_by_date (twos [i ], & list );
579+ commit_list_insert_by_date (twos [i ], & list );
580580 }
581581
582582 while (interesting (list )) {
@@ -594,7 +594,7 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
594594 if (flags == (PARENT1 | PARENT2 )) {
595595 if (!(commit -> object .flags & RESULT )) {
596596 commit -> object .flags |= RESULT ;
597- insert_by_date (commit , & result );
597+ commit_list_insert_by_date (commit , & result );
598598 }
599599 /* Mark parents of a found merge stale */
600600 flags |= STALE ;
@@ -608,7 +608,7 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
608608 if (parse_commit (p ))
609609 return NULL ;
610610 p -> object .flags |= flags ;
611- insert_by_date (p , & list );
611+ commit_list_insert_by_date (p , & list );
612612 }
613613 }
614614
@@ -618,7 +618,7 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
618618 while (list ) {
619619 struct commit_list * next = list -> next ;
620620 if (!(list -> item -> object .flags & STALE ))
621- insert_by_date (list -> item , & result );
621+ commit_list_insert_by_date (list -> item , & result );
622622 free (list );
623623 list = next ;
624624 }
@@ -711,7 +711,7 @@ struct commit_list *get_merge_bases_many(struct commit *one,
711711 result = NULL ;
712712 for (i = 0 ; i < cnt ; i ++ ) {
713713 if (rslt [i ])
714- insert_by_date (rslt [i ], & result );
714+ commit_list_insert_by_date (rslt [i ], & result );
715715 }
716716 free (rslt );
717717 return result ;
0 commit comments