diff options
author | Jeff King <peff@peff.net> | 2013-07-02 02:21:48 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-02 12:03:50 -0700 |
commit | 727377ff65f8b38990d4aa13fc6979d9a8cd6756 (patch) | |
tree | bbcce58f9dbb8f7095370b5c8f1e3594519406ac /commit.c | |
parent | 16445242edd7e90dc564b657043d2a5efca68cb0 (diff) | |
download | git-727377ff65f8b38990d4aa13fc6979d9a8cd6756.tar.gz |
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.c')
-rw-r--r-- | commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |