commit: Add commit_list prefix in two function names.

Add commit_list prefix to insert_by_date function and to sort_by_date,
so it's clear that these functions refer to commit_list structure.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Thiago Farina
2010-11-26 23:58:14 -02:00
committed by Junio C Hamano
parent 7d43de925b
commit 47e44ed1dc
9 changed files with 35 additions and 35 deletions

View File

@ -366,7 +366,7 @@ static int reachable(struct commit *want)
{
struct commit_list *work = NULL;
insert_by_date(want, &work);
commit_list_insert_by_date(want, &work);
while (work) {
struct commit_list *list = work->next;
struct commit *commit = work->item;
@ -387,7 +387,7 @@ static int reachable(struct commit *want)
for (list = commit->parents; list; list = list->next) {
struct commit *parent = list->item;
if (!(parent->object.flags & REACHABLE))
insert_by_date(parent, &work);
commit_list_insert_by_date(parent, &work);
}
}
want->object.flags |= REACHABLE;