Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-02 03:37:34 +0300
committerJunio C Hamano <gitster@pobox.com>2010-12-02 03:37:34 +0300
commite760924cbeb19c6e45febdb31d9d6c95deaf2b43 (patch)
tree4f426511d6a035ab97addf72b5fddeba7c23d3e3
parent520ea857e66f25a681401fd534b2f0d099fd2d31 (diff)
parent6b3020a241e2c0a1eaa6b74a10a796603bb90975 (diff)
Merge branch 'maint-1.7.0' into maint-1.7.1
* maint-1.7.0: add: introduce add.ignoreerrors synonym for add.ignore-errors
-rw-r--r--Documentation/config.txt6
-rw-r--r--builtin/add.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index eae06e7c3e..6a07fe60e7 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -530,9 +530,13 @@ core.sparseCheckout::
linkgit:git-read-tree[1] for more information.
add.ignore-errors::
+add.ignoreErrors::
Tells 'git add' to continue adding files when some files cannot be
added due to indexing errors. Equivalent to the '--ignore-errors'
- option of linkgit:git-add[1].
+ option of linkgit:git-add[1]. Older versions of git accept only
+ `add.ignore-errors`, which does not follow the usual naming
+ convention for configuration variables. Newer versions of git
+ honor `add.ignoreErrors` as well.
alias.*::
Command aliases for the linkgit:git[1] command wrapper - e.g.
diff --git a/builtin/add.c b/builtin/add.c
index 87d2980313..51eeabad86 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -328,7 +328,8 @@ static struct option builtin_add_options[] = {
static int add_config(const char *var, const char *value, void *cb)
{
- if (!strcasecmp(var, "add.ignore-errors")) {
+ if (!strcasecmp(var, "add.ignoreerrors") ||
+ !strcasecmp(var, "add.ignore-errors")) {
ignore_add_errors = git_config_bool(var, value);
return 0;
}