Skip to content

Commit

Permalink
Merge branch 'maint-1.7.0' into maint-1.7.1
Browse files Browse the repository at this point in the history
* maint-1.7.0:
  add: introduce add.ignoreerrors synonym for add.ignore-errors
  • Loading branch information
Junio C Hamano committed Dec 2, 2010
2 parents 520ea85 + 6b3020a commit e760924
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,13 @@ core.sparseCheckout::
linkgit:git-read-tree[1] for more information.

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

alias.*::
Command aliases for the linkgit:git[1] command wrapper - e.g.
Expand Down
3 changes: 2 additions & 1 deletion builtin/add.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ static struct option builtin_add_options[] = {

static int add_config(const char *var, const char *value, void *cb)
{
if (!strcasecmp(var, "add.ignore-errors")) {
if (!strcasecmp(var, "add.ignoreerrors") ||
!strcasecmp(var, "add.ignore-errors")) {
ignore_add_errors = git_config_bool(var, value);
return 0;
}
Expand Down

0 comments on commit e760924

Please sign in to comment.