Skip to content

Commit e760924

Browse files
committed
Merge branch 'maint-1.7.0' into maint-1.7.1
* maint-1.7.0: add: introduce add.ignoreerrors synonym for add.ignore-errors
2 parents 520ea85 + 6b3020a commit e760924

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
@@ -530,9 +530,13 @@ core.sparseCheckout::
530530
linkgit:git-read-tree[1] for more information.
531531

532532
add.ignore-errors::
533+
add.ignoreErrors::
533534
Tells 'git add' to continue adding files when some files cannot be
534535
added due to indexing errors. Equivalent to the '--ignore-errors'
535-
option of linkgit:git-add[1].
536+
option of linkgit:git-add[1]. Older versions of git accept only
537+
`add.ignore-errors`, which does not follow the usual naming
538+
convention for configuration variables. Newer versions of git
539+
honor `add.ignoreErrors` as well.
536540

537541
alias.*::
538542
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
@@ -328,7 +328,8 @@ static struct option builtin_add_options[] = {
328328

329329
static int add_config(const char *var, const char *value, void *cb)
330330
{
331-
if (!strcasecmp(var, "add.ignore-errors")) {
331+
if (!strcasecmp(var, "add.ignoreerrors") ||
332+
!strcasecmp(var, "add.ignore-errors")) {
332333
ignore_add_errors = git_config_bool(var, value);
333334
return 0;
334335
}

0 commit comments

Comments
 (0)