]> git.ipfire.org Git - thirdparty/git.git/commit
parseopt: values of pathname type can be prefixed with :(optional)
authorJunio C Hamano <gitster@pobox.com>
Sun, 28 Sep 2025 21:29:16 +0000 (17:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Oct 2025 17:05:48 +0000 (10:05 -0700)
commitccfcaf399ffcc91553395a8de8e833e7685e7cc2
tree42f7409a32b8414fbd9f1923ad62115ef7cee3bc
parent749d6d166d8e3ea0ae32ede25f9aa23aa3b5e42b
parseopt: values of pathname type can be prefixed with :(optional)

In the previous step, we introduced an optional filename that can be
given to a configuration variable, and nullify the fact that such a
configuration setting even existed if the named path is missing or
empty.

Let's do the same for command line options that name a pathname.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitcli.adoc
parse-options.c
t/t7500-commit-template-squash-signoff.sh