]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
trailers: export action enums and corresponding lookup functions
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Jul 2017 08:22:43 +0000 (10:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Jul 2017 18:42:08 +0000 (11:42 -0700)
commit52fc319d4dfdbf67fe298908d8519be271ca4eb4
tree5a034da724c313192e918040e168c3af69404b72
parent5800c63717ae35286a1441f14ffff753e01f7e2b
trailers: export action enums and corresponding lookup functions

Separate the mechanical changes out of the next patch.  The functions
are changed to take a pointer to enum, because struct conf_info is not
going to be public.

Set the default values explicitly in default_conf_info, since they are
not anymore close to default_conf_info and it's not obvious which
constant has value 0.  With the next patches, in fact, the values will
not be zero anymore!

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c
trailer.h