summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2020-11-25 22:12:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-25 22:43:48 (GMT)
commit247e2f822e6ccdccaa19ca1a54d4082ce5d819e7 (patch)
treeac55c9de033f7dba133748a33d3a75511a7e730e /config.h
parent504ee1290e38fb1ff0d76f940b124e21ab57a99f (diff)
downloadgit-247e2f822e6ccdccaa19ca1a54d4082ce5d819e7.zip
git-247e2f822e6ccdccaa19ca1a54d4082ce5d819e7.tar.gz
git-247e2f822e6ccdccaa19ca1a54d4082ce5d819e7.tar.bz2
config: replace 'value_regex' with 'value_pattern'
The 'value_regex' argument in the 'git config' builtin is poorly named, especially related to an upcoming change that allows exact string matches instead of ERE pattern matches. Perform a mostly mechanical change of every instance of 'value_regex' to 'value_pattern' in the codebase. This is only critical for documentation and error messages, but it is best to be consistent inside the codebase, too. For documentation, use 'value-pattern' which is better punctuation. This affects Documentation/git-config.txt and the usage in builtin/config.c, which was already mixed between 'value_regex' and 'value-regex'. I gave some thought to leaving the value_regex variables inside config.c that are regex_t pointers. However, it is probably best to keep the name consistent with the rest of the variables. This does not update the translations inside the po/ directory, as that creates conflicts with ongoing work. The input strings should automatically update through automation, and a few of the output strings currently use "[value_regex]" directly. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index 84fdf22..7535b1f 100644
--- a/config.h
+++ b/config.h
@@ -296,7 +296,7 @@ int git_config_set_multivar_in_file_gently(const char *, const char *, const cha
void git_config_set_multivar_in_file(const char *config_filename,
const char *key,
const char *value,
- const char *value_regex,
+ const char *value_pattern,
unsigned flags);
/**