From c1063be2a3e14ac042db4fe9b9bcea8f2768886a Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 19 Aug 2014 02:20:00 -0400 Subject: config: avoid a funny sentinel value "a^" Introduce CONFIG_REGEX_NONE as a more explicit sentinel value to say "we do not want to replace any existing entry" and use it in the implementation of "git config --add". Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- cache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cache.h') diff --git a/cache.h b/cache.h index c708062df9..8356168bb5 100644 --- a/cache.h +++ b/cache.h @@ -1233,6 +1233,8 @@ extern int update_server_info(int); #define CONFIG_INVALID_PATTERN 6 #define CONFIG_GENERIC_ERROR 7 +#define CONFIG_REGEX_NONE ((void *)1) + struct git_config_source { unsigned int use_stdin:1; const char *file; -- cgit v1.2.1