aboutsummaryrefslogtreecommitdiff
path: root/builtin/add.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-05-14 15:19:21 -0500
committerJunio C Hamano <gitster@pobox.com>2011-05-14 18:53:39 -0700
commit8c2be75fe117f5079087a6dfb07c573cc6716143 (patch)
treedbd90c21ea5e73685899482249c8336cdbe42a36 /builtin/add.c
parent375f8a032e9f47d362afd5ea2443f77bcba685cb (diff)
downloadgit-8c2be75fe117f5079087a6dfb07c573cc6716143.tar.gz
git-8c2be75fe117f5079087a6dfb07c573cc6716143.tar.xz
add, merge, diff: do not use strcasecmp to compare config variable names
The config machinery already makes section and variable names lowercase when parsing them, so using strcasecmp for comparison just feels wasteful. No noticeable change intended. Noticed-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/add.c')
-rw-r--r--builtin/add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/add.c b/builtin/add.c
index d39a6ab93..944e5a8cc 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -330,8 +330,8 @@ static struct option builtin_add_options[] = {
static int add_config(const char *var, const char *value, void *cb)
{
- if (!strcasecmp(var, "add.ignoreerrors") ||
- !strcasecmp(var, "add.ignore-errors")) {
+ if (!strcmp(var, "add.ignoreerrors") ||
+ !strcmp(var, "add.ignore-errors")) {
ignore_add_errors = git_config_bool(var, value);
return 0;
}