diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-06-16 09:01:02 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-16 09:01:02 -0700 |
| commit | 6e148f82dc91cf208c5f60dea66dce198d4ee4e2 (patch) | |
| tree | 095f1a2baccd2fb70ef742afb8a1253e90c20ed3 /commit.c | |
| parent | c534ec3a5d967769950d3b632c1a897ac13869c9 (diff) | |
| parent | dd4bc01c0a8fc871a68a5027ed5ac953fa47fc6e (diff) | |
Merge branch 'kk/streaming-walk-pqueue'
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
Diffstat (limited to 'commit.c')
| -rw-r--r-- | commit.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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) { |
