]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
trailer: have function to describe trailer layout
authorJonathan Tan <jonathantanmy@google.com>
Wed, 2 Nov 2016 17:29:19 +0000 (10:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Nov 2016 22:22:18 +0000 (14:22 -0800)
commite8c352c316f31a3869f3ad1dae0e8b33042cbaf4
tree6465a49e1e40e79e40243a3643431d7eb69483ad
parent022349c3b091f2aa047f1cd12b5409d564b25324
trailer: have function to describe trailer layout

Create a function that, taking a string, describes the position of its
trailer block (if available) and the contents thereof, and make trailer
use it. This makes it easier for other Git components, in the future, to
interpret trailer blocks in the same way as trailer.

In a subsequent patch, another component will be made to use this.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c
trailer.h