From b0ca120554be8d8f7faf98aa3b991441de76f5cf Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Wed, 16 Dec 2020 22:27:59 +0000 Subject: commit: move reverse_commit_list() from merge-recursive Signed-off-by: Elijah Newren Signed-off-by: Junio C Hamano --- commit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'commit.h') diff --git a/commit.h b/commit.h index 5467786c7b..3e9139a000 100644 --- a/commit.h +++ b/commit.h @@ -177,6 +177,9 @@ void commit_list_sort_by_date(struct commit_list **list); /* Shallow copy of the input list */ struct commit_list *copy_commit_list(struct commit_list *list); +/* Modify list in-place to reverse it, returning new head; list will be tail */ +struct commit_list *reverse_commit_list(struct commit_list *list); + void free_commit_list(struct commit_list *list); struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */ -- cgit v1.2.3