]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'dk/parseopt-optional-filename-fixes' main master
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Nov 2025 23:17:01 +0000 (15:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Nov 2025 23:17:01 +0000 (15:17 -0800)
commit4badef0c3503dc29059d678abba7fac0f042bc84
treee5284d2d90ed97ef7191b630cfad5c49ffba9f49
parente569dced68a486b38b14cdd2e3e0b34d21752a18
parenta2584d04344b93610ee9e958d477d743380fc8d7
Merge branch 'dk/parseopt-optional-filename-fixes'

A recently added configuration variable and command line option
syntax ":(optional)" for values that are of filename type
inconsistently behaved on an empty file (configuration took it
happily, while the command line option pretended as if it did not
exist), which has been corrected.

* dk/parseopt-optional-filename-fixes:
  parseopt: remove unreachable code
  parseopt: restore const qualifier to parsed filename
  config: use boolean type for a simple flag
  parseopt: use boolean type for a simple flag
  doc: clarify command equivalence comment
  parseopt: fix :(optional) at command line to only ignore missing files
config.c
parse-options.c