]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
trailer: use list.h for doubly-linked list
authorJonathan Tan <jonathantanmy@google.com>
Thu, 20 Oct 2016 21:39:47 +0000 (14:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Oct 2016 22:09:38 +0000 (15:09 -0700)
commit8966a39483fb2e823055b1c7f1a2ff9394d727e4
tree8f159d330e56ab4a591e79238c7225da7b74324b
parentd65fd424ad21adbc1ea11fcddae331698453d1e2
trailer: use list.h for doubly-linked list

Replace the existing handwritten implementation of a doubly-linked list
in trailer.c with the functions and macros from list.h. This
significantly simplifies the code.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c