summaryrefslogtreecommitdiff
path: root/commit.h
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.h
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.h')
-rw-r--r--commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 4d452dc96d..18a523495e 100644
--- a/commit.h
+++ b/commit.h
@@ -254,4 +254,6 @@ extern void print_commit_list(struct commit_list *list,
*/
extern void check_commit_signature(const struct commit* commit, struct signature_check *sigc);
+int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused);
+
#endif /* COMMIT_H */