diff options
author | Elijah Newren <newren@gmail.com> | 2020-12-16 23:27:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-17 06:56:39 +0100 |
commit | b0ca120554be8d8f7faf98aa3b991441de76f5cf (patch) | |
tree | 2b77aee65ec174e812abc04053d38486c30a7f0e /merge-recursive.c | |
parent | merge-ort: add modify/delete handling and delayed output processing (diff) | |
download | git-b0ca120554be8d8f7faf98aa3b991441de76f5cf.tar.xz git-b0ca120554be8d8f7faf98aa3b991441de76f5cf.zip |
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 'merge-recursive.c')
-rw-r--r-- | merge-recursive.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/merge-recursive.c b/merge-recursive.c index f736a0f632..b052974f19 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -3517,17 +3517,6 @@ static int merge_trees_internal(struct merge_options *opt, return clean; } -static struct commit_list *reverse_commit_list(struct commit_list *list) -{ - struct commit_list *next = NULL, *current, *backup; - for (current = list; current; current = backup) { - backup = current->next; - current->next = next; - next = current; - } - return next; -} - /* * Merge the commits h1 and h2, returning a flag (int) indicating the * cleanness of the merge. Also, if opt->priv->call_depth, create a |