File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -539,9 +539,13 @@ core.sparseCheckout::
539
539
linkgit:git-read-tree[1] for more information.
540
540
541
541
add.ignore-errors::
542
+ add.ignoreErrors::
542
543
Tells 'git add' to continue adding files when some files cannot be
543
544
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.
545
549
546
550
alias.*::
547
551
Command aliases for the linkgit:git[1] command wrapper - e.g.
Original file line number Diff line number Diff line change @@ -331,7 +331,8 @@ static struct option builtin_add_options[] = {
331
331
332
332
static int add_config (const char * var , const char * value , void * cb )
333
333
{
334
- if (!strcasecmp (var , "add.ignore-errors" )) {
334
+ if (!strcasecmp (var , "add.ignoreerrors" ) ||
335
+ !strcasecmp (var , "add.ignore-errors" )) {
335
336
ignore_add_errors = git_config_bool (var , value );
336
337
return 0 ;
337
338
}
You can’t perform that action at this time.
0 commit comments