mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-18 02:12:55 -05:00
Merge branch 'kk/streaming-walk-pqueue' into jch
Streaming revision walks have been optimized by using a priority queue for date-sorting commits, speeding up walks repositories with many merges. * kk/streaming-walk-pqueue: revision: use priority queue for non-limited streaming walks revision: introduce rev_walk_mode to clarify get_revision_1() pack-objects: call release_revisions() after cruft traversal
This commit is contained in:
13
commit.c
13
commit.c
@@ -760,19 +760,6 @@ void commit_list_free(struct commit_list *list)
|
||||
pop_commit(&list);
|
||||
}
|
||||
|
||||
struct commit_list * commit_list_insert_by_date(struct commit *item, struct commit_list **list)
|
||||
{
|
||||
struct commit_list **pp = list;
|
||||
struct commit_list *p;
|
||||
while ((p = *pp) != NULL) {
|
||||
if (p->item->date < item->date) {
|
||||
break;
|
||||
}
|
||||
pp = &p->next;
|
||||
}
|
||||
return commit_list_insert(item, pp);
|
||||
}
|
||||
|
||||
static int commit_list_compare_by_date(const struct commit_list *a,
|
||||
const struct commit_list *b)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user