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::
530530 linkgit:git-read-tree[1] for more information.
531531
532532add.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
537541alias.*::
538542 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[] = {
328328
329329static 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 }
You can’t perform that action at this time.
0 commit comments