author | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 18:41:18 +0000 (10:41 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 21:11:36 +0000 (13:11 -0800) | ||
commit | 40ea4ed9032a80c9dba706d6030bd11b08c35f4d | |
tree | e59d64db67bef5ef33ae220c445ce3dba0236b22 | tree | snapshot |
parent | c5e5a2c097240e7d51374eef398d388c5ee5cc9b | commit | diff |
Add config_error_nonbool() helper function
This is used to report misconfigured configuration file that does not
give any value to a non-boolean variable, e.g.
[section]
var
It is perfectly fine to say it if the section.var is a boolean (it means
true), but if a variable expects a string value it should be flagged as
a configuration error.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This is used to report misconfigured configuration file that does not
give any value to a non-boolean variable, e.g.
[section]
var
It is perfectly fine to say it if the section.var is a boolean (it means
true), but if a variable expects a string value it should be flagged as
a configuration error.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
config.c | diff | blob | history |