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 @@ -530,9 +530,13 @@ core.sparseCheckout::
530
530
linkgit:git-read-tree[1] for more information.
531
531
532
532
add.ignore-errors::
533
+ add.ignoreErrors::
533
534
Tells 'git add' to continue adding files when some files cannot be
534
535
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.
536
540
537
541
alias.*::
538
542
Command aliases for the linkgit:git[1] command wrapper - e.g.
Original file line number Diff line number Diff line change @@ -328,7 +328,8 @@ static struct option builtin_add_options[] = {
328
328
329
329
static int add_config (const char * var , const char * value , void * cb )
330
330
{
331
- if (!strcasecmp (var , "add.ignore-errors" )) {
331
+ if (!strcasecmp (var , "add.ignoreerrors" ) ||
332
+ !strcasecmp (var , "add.ignore-errors" )) {
332
333
ignore_add_errors = git_config_bool (var , value );
333
334
return 0 ;
334
335
}
You can’t perform that action at this time.
0 commit comments