diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1079,3 +1079,12 @@ int git_config_rename_section(const char *old_name, const char *new_name) free(config_filename); return ret; } + +/* + * Call this to report error for your variable that should not + * get a boolean value (i.e. "[my] var" means "true"). + */ +int config_error_nonbool(const char *var) +{ + return error("Missing value for '%s'", var); +} |