]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/commit: use ARGV macro to collect trailers
authorJohn Passaro <john.a.passaro@gmail.com>
Sun, 5 May 2024 18:49:08 +0000 (18:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2024 17:05:41 +0000 (10:05 -0700)
commit56740f9910218a03374b5e410b3a2d204d7c33ed
tree7a20accf593af9ec23f438d772e6d33a0ae89eea
parentd4cc1ec35f3bcce816b69986ca41943f6ce21377
builtin/commit: use ARGV macro to collect trailers

Replace git-commit's callback for --trailer with the standard
OPT_PASSTHRU_ARGV macro. The callback only adds its values to a strvec
and sanity-checks that `unset` is always false; both of these are
already implemented in the parse-option API.

Signed-off-by: John Passaro <john.a.passaro@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c