specifying a file that can optionally exist
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | t7500: make each piece more independentt/ | +7 | 0 replies | |
| 2/3 | config: values of pathname type can be prefixed with :(optional)Documentation/ config.c t/ | +27 | 0 replies | |
| 3/3 | parseopt: values of pathname type can be prefixed with :(optional)parse-options.c t/ | +31 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] specifying a file that can optionally exist
In a discussion a few years ago (cf. <[email protected]>), we wondered if it is a good idea to allow a configuration variable (or a command line option for that matter) to name an "optional" file, and pretend as if such a configuration setting or a command line option was not even given when the named file did not exist or empty.
Here are a few patches I did while passing time without anything better to do.
Even though I updated the documentation for the configuration variables, I didn't find a good central place to do the same for parse-options. I'll leave it as an exercise for the readers ;-).
The first patch is a preliminary clean-up for test script that is used to house tests added by the later patches.
The second patch is for configuration variables, and the last one is for command line options.
Junio C Hamano (3):
t7500: make each piece more independent
config: values of pathname type can be prefixed with :(optional)
parseopt: values of pathname type can be prefixed with :(optional)
Documentation/config.txt | 5 +++- config.c | 16 +++++++++-- parse-options.c | 31 +++++++++++++------- t/t7500-commit-template-squash-signoff.sh | 35 +++++++++++++++++------ 4 files changed, 65 insertions(+), 22 deletions(-)
Signature · 1 line
2.47.0-148-g19c85929c5