Skip to content

Commit 2de132f

Browse files
committed
Merge branch 'maint-1.7.1' into maint-1.7.2
* maint-1.7.1: add: introduce add.ignoreerrors synonym for add.ignore-errors
2 parents bd40d25 + e760924 commit 2de132f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Documentation/config.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,13 @@ core.sparseCheckout::
539539
linkgit:git-read-tree[1] for more information.
540540

541541
add.ignore-errors::
542+
add.ignoreErrors::
542543
Tells 'git add' to continue adding files when some files cannot be
543544
added due to indexing errors. Equivalent to the '--ignore-errors'
544-
option of linkgit:git-add[1].
545+
option of linkgit:git-add[1]. Older versions of git accept only
546+
`add.ignore-errors`, which does not follow the usual naming
547+
convention for configuration variables. Newer versions of git
548+
honor `add.ignoreErrors` as well.
545549

546550
alias.*::
547551
Command aliases for the linkgit:git[1] command wrapper - e.g.

builtin/add.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ static struct option builtin_add_options[] = {
331331

332332
static int add_config(const char *var, const char *value, void *cb)
333333
{
334-
if (!strcasecmp(var, "add.ignore-errors")) {
334+
if (!strcasecmp(var, "add.ignoreerrors") ||
335+
!strcasecmp(var, "add.ignore-errors")) {
335336
ignore_add_errors = git_config_bool(var, value);
336337
return 0;
337338
}

0 commit comments

Comments
 (0)