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::
539539 linkgit:git-read-tree[1] for more information.
540540
541541add.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
546550alias.*::
547551 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[] = {
331331
332332static 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 }
You can’t perform that action at this time.
0 commit comments