]> Kevux Git Server - rit/commit
trailer: split process_command_line_args into separate functions
authorLinus Arver <linusa@google.com>
Sat, 9 Sep 2023 06:16:14 +0000 (06:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Sep 2023 17:01:19 +0000 (10:01 -0700)
commit94430d03df639ef49f178f1339ed48a31d84061f
tree9633c63ee42c45249483a2b3bb2f9228797a8d4a
parentc2a8edf997a8d9f3f005666f63105172a23bd3a0
trailer: split process_command_line_args into separate functions

Previously, process_command_line_args did two things:

    (1) parse trailers from the configuration, and
    (2) parse trailers defined on the command line.

Separate (1) outside to a new function, parse_trailers_from_config.
Rename the remaining logic to parse_trailers_from_command_line_args.

Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c