]> git.99rst.org Git - git.git/commit
commit, tag: parse --trailer with OPT_STRVEC
authorLi Chen <redacted>
Fri, 6 Mar 2026 14:53:31 +0000 (14:53 +0000)
committerJunio C Hamano <redacted>
Fri, 6 Mar 2026 21:02:20 +0000 (13:02 -0800)
commit5e148696bf86f0173dfc91571d15ba833ec19ccd
tree63c53c41184137472ef8fe360a14f66100552e61
parent6b2243fdd45f0596fc640823faaa6a1aec05a420
commit, tag: parse --trailer with OPT_STRVEC

Now that amend_file_with_trailers() expects raw trailer lines, do not
store argv-style "--trailer=<trailer>" strings in git commit and git
tag.

Parse --trailer using OPT_STRVEC so trailer_args contains only the
trailer value, and drop the temporary prefix stripping in
amend_file_with_trailers().

Signed-off-by: Li Chen <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/commit.c
builtin/tag.c
trailer.c
trailer.h
git clone https://git.99rst.org/PROJECT