summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-07-02 06:21:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-02 19:03:50 (GMT)
commit727377ff65f8b38990d4aa13fc6979d9a8cd6756 (patch)
treebbcce58f9dbb8f7095370b5c8f1e3594519406ac /commit.h
parent16445242edd7e90dc564b657043d2a5efca68cb0 (diff)
downloadgit-727377ff65f8b38990d4aa13fc6979d9a8cd6756.zip
git-727377ff65f8b38990d4aa13fc6979d9a8cd6756.tar.gz
git-727377ff65f8b38990d4aa13fc6979d9a8cd6756.tar.bz2
commit.c: make compare_commits_by_commit_date global
This helper function was introduced as a prio_queue comparator to help topological sorting. However, other users of prio_queue who want to replace commit_list_insert_by_date will want to use it, too. So let's make it public. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 4d452dc..18a5234 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 */