From 727377ff65f8b38990d4aa13fc6979d9a8cd6756 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 2 Jul 2013 02:21:48 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- commit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commit.h') diff --git a/commit.h b/commit.h index 4d452dc96..18a523495 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 */ -- cgit v1.2.1