summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-07-15 10:28:31 -0700
committerJunio C Hamano <gitster@pobox.com>2013-07-15 10:28:31 -0700
commitdd28abca6ab1b8c4b55fdcadeaae092fc897c063 (patch)
tree3efdc0ebaf8dc3f8b4c8ff744c5396499600c4b3 /commit.c
parent0da7a53a76b48ea1b2ee6ebe7bd7fbcd7d5c3f9d (diff)
parent099327b55275ddad678c27c7501e1babed078aef (diff)
downloadgit-dd28abca6ab1b8c4b55fdcadeaae092fc897c063.tar.gz
Merge branch 'jk/fetch-pack-many-refs'
Fetching between repositories with many refs employed O(n^2) algorithm to match up the common objects, which has been corrected. * jk/fetch-pack-many-refs: fetch-pack: avoid quadratic behavior in rev_list_push commit.c: make compare_commits_by_commit_date global fetch-pack: avoid quadratic list insertion in mark_complete
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 521e49c309..ebc0eeab8f 100644
--- a/commit.c
+++ b/commit.c
@@ -581,7 +581,7 @@ static int compare_commits_by_author_date(const void *a_, const void *b_,
return 0;
}
-static int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
+int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
{
const struct commit *a = a_, *b = b_;
/* newer commits with larger date first */