aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 10:41:18 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-11 13:11:36 -0800
commit40ea4ed9032a80c9dba706d6030bd11b08c35f4d (patch)
treee59d64db67bef5ef33ae220c445ce3dba0236b22 /cache.h
parentc5e5a2c097240e7d51374eef398d388c5ee5cc9b (diff)
downloadgit-40ea4ed9032a80c9dba706d6030bd11b08c35f4d.tar.gz
git-40ea4ed9032a80c9dba706d6030bd11b08c35f4d.tar.xz
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>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 549f4bbac..6abcee437 100644
--- a/cache.h
+++ b/cache.h
@@ -589,6 +589,7 @@ extern int git_config_set_multivar(const char *, const char *, const char *, int
extern int git_config_rename_section(const char *, const char *);
extern const char *git_etc_gitconfig(void);
extern int check_repository_format_version(const char *var, const char *value);
+extern int config_error_nonbool(const char *);
#define MAX_GITNAME (1000)
extern char git_default_email[MAX_GITNAME];