]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
trailer: make args have their own struct
authorJonathan Tan <jonathantanmy@google.com>
Thu, 20 Oct 2016 21:39:49 +0000 (14:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Oct 2016 22:09:52 +0000 (15:09 -0700)
commitcc71b0de115808835486bc10d094b49261128276
tree80952fa22a9c9dbde28a9f5a7c210fe80d3f7250
parent63ab3f348458212c3e5d493465acd615303fb45a
trailer: make args have their own struct

Improve type safety by making arguments (whether from configuration or
from the command line) have their own "struct arg_item" type, separate
from the "struct trailer_item" type used to represent the trailers in
the buffer being manipulated.

This change also prepares "struct trailer_item" to be further
differentiated from "struct arg_item" in future patches.

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