diff options
author | John Passaro <john.a.passaro@gmail.com> | 2024-05-05 18:49:09 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-05-07 10:06:03 -0700 |
commit | 4a8618785e3df20287d4c18707118d34581a298b (patch) | |
tree | 965102e28480df653b4311919178f9a440f284d2 /commit-graph.c | |
parent | 56740f9910218a03374b5e410b3a2d204d7c33ed (diff) |
builtin/commit: refactor --trailer logic
git-commit adds user trailers to the commit message by passing its
`--trailer` arguments to a child process running `git-interpret-trailers
--in-place`. This logic is broadly useful, not just for git-commit but
for other commands constructing message bodies (e.g. git-tag).
Let's move this logic from git-commit to a new function in the trailer
API, so that it can be re-used in other commands.
Helped-by: Patrick Steinhardt <ps@pks.im>
Helped-by: Junio C Hamano <gitster@pobox.com>
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>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions