]> git.ipfire.org Git - thirdparty/git.git/commitdiff
trailer --only-input: prefer "configuration variables" over "rules"
authorLinus Arver <linusa@google.com>
Thu, 7 Sep 2023 22:20:04 +0000 (22:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Sep 2023 06:04:44 +0000 (23:04 -0700)
Use the phrase "configuration variables" instead of "rules" because

(1) we already say "configuration variables" in multiple
    places in the docs (where the word "rules" is only used for describing
    "--only-input" behavior and for an unrelated case of mentioning how
    the trailers do not follow "rules for RFC 822 headers"), and

(2) this phrase is more specific than just "rules".

Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-interpret-trailers.txt
builtin/interpret-trailers.c

index b5284c3d33fd36482e8daf2107a3bef78fd88576..0eea937c30ea4479ca5b105c465819376b7eec69 100644 (file)
@@ -149,8 +149,8 @@ OPTIONS
 
 --only-input::
        Output only trailers that exist in the input; do not add any
-       from the command-line or by following configured `trailer.*`
-       rules.
+       from the command-line or by applying `trailer.*` configuration
+       variables.
 
 --unfold::
        Remove any whitespace-continuation in trailers, so that each
index 5f3e1a38eee2fffcd1930adc4f784400b13d6e99..f70c5df8d4b9ebe744eea5a13f29e7251cf5adcb 100644 (file)
@@ -105,7 +105,7 @@ int cmd_interpret_trailers(int argc, const char **argv, const char *prefix)
                             N_("action if trailer is missing"), option_parse_if_missing),
 
                OPT_BOOL(0, "only-trailers", &opts.only_trailers, N_("output only the trailers")),
-               OPT_BOOL(0, "only-input", &opts.only_input, N_("do not apply config rules")),
+               OPT_BOOL(0, "only-input", &opts.only_input, N_("do not apply trailer.* configuration variables")),
                OPT_BOOL(0, "unfold", &opts.unfold, N_("join whitespace-continued values")),
                OPT_CALLBACK_F(0, "parse", &opts, NULL, N_("alias for --only-trailers --only-input --unfold"),
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, parse_opt_parse),