summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-02-22 11:23:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-02-22 18:23:55 (GMT)
commit3d1806487af395fb33d1de92633e96571b296305 (patch)
treec7bc07258511d11eaf29fc9be1386a42688dcbe8 /config.c
parent30598ad06f2adfef1f74d6348677358865cbf373 (diff)
downloadgit-3d1806487af395fb33d1de92633e96571b296305.zip
git-3d1806487af395fb33d1de92633e96571b296305.tar.gz
git-3d1806487af395fb33d1de92633e96571b296305.tar.bz2
config: rename git_config_set_or_die to git_config_set
Rename git_config_set_or_die functions to git_config_set, leading to the new default behavior of dying whenever a configuration error occurs. By now all callers that shall die on error have been transitioned to the _or_die variants, thus making this patch a simple rename of the functions. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/config.c b/config.c
index e7f42da..325c3ea 100644
--- a/config.c
+++ b/config.c
@@ -1831,10 +1831,10 @@ int git_config_set_in_file_gently(const char *config_filename,
return git_config_set_multivar_in_file_gently(config_filename, key, value, NULL, 0);
}
-void git_config_set_in_file_or_die(const char *config_filename,
- const char *key, const char *value)
+void git_config_set_in_file(const char *config_filename,
+ const char *key, const char *value)
{
- git_config_set_multivar_in_file_or_die(config_filename, key, value, NULL, 0);
+ git_config_set_multivar_in_file(config_filename, key, value, NULL, 0);
}
int git_config_set_gently(const char *key, const char *value)
@@ -1842,9 +1842,9 @@ int git_config_set_gently(const char *key, const char *value)
return git_config_set_multivar_gently(key, value, NULL, 0);
}
-void git_config_set_or_die(const char *key, const char *value)
+void git_config_set(const char *key, const char *value)
{
- git_config_set_multivar_or_die(key, value, NULL, 0);
+ git_config_set_multivar(key, value, NULL, 0);
}
/*
@@ -2191,9 +2191,9 @@ write_err_out:
}
-void git_config_set_multivar_in_file_or_die(const char *config_filename,
- const char *key, const char *value,
- const char *value_regex, int multi_replace)
+void git_config_set_multivar_in_file(const char *config_filename,
+ const char *key, const char *value,
+ const char *value_regex, int multi_replace)
{
if (git_config_set_multivar_in_file_gently(config_filename, key, value,
value_regex, multi_replace) < 0)
@@ -2207,11 +2207,11 @@ int git_config_set_multivar_gently(const char *key, const char *value,
multi_replace);
}
-void git_config_set_multivar_or_die(const char *key, const char *value,
- const char *value_regex, int multi_replace)
+void git_config_set_multivar(const char *key, const char *value,
+ const char *value_regex, int multi_replace)
{
- git_config_set_multivar_in_file_or_die(NULL, key, value, value_regex,
- multi_replace);
+ git_config_set_multivar_in_file(NULL, key, value, value_regex,
+ multi_replace);
}
static int section_name_match (const char *buf, const char *name)