diff options
author | Elijah Newren <newren@gmail.com> | 2020-12-16 22:27:59 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-16 21:56:39 -0800 |
commit | b0ca120554be8d8f7faf98aa3b991441de76f5cf (patch) | |
tree | 2b77aee65ec174e812abc04053d38486c30a7f0e /commit.h | |
parent | c5a6f65527aa3b6f5d7cf25437a88d8727ab0646 (diff) | |
download | git-b0ca120554be8d8f7faf98aa3b991441de76f5cf.tar.gz |
commit: move reverse_commit_list() from merge-recursive
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |