Skip to content

Commit 5501bf8

Browse files
committed
Merge branch 'maint-1.7.2' into maint
* maint-1.7.2: add: introduce add.ignoreerrors synonym for add.ignore-errors bash: Match lightweight tags in prompt git-commit.txt: (synopsis): move -i and -o before "--"
2 parents 16529f2 + 2de132f commit 5501bf8

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

Documentation/config.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,13 @@ core.sparseCheckout::
548548
linkgit:git-read-tree[1] for more information.
549549

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

555559
alias.*::
556560
Command aliases for the linkgit:git[1] command wrapper - e.g.

Documentation/git-commit.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ SYNOPSIS
1111
'git commit' [-a | --interactive] [-s] [-v] [-u<mode>] [--amend] [--dry-run]
1212
[(-c | -C) <commit>] [-F <file> | -m <msg>] [--reset-author]
1313
[--allow-empty] [--allow-empty-message] [--no-verify] [-e] [--author=<author>]
14-
[--date=<date>] [--cleanup=<mode>] [--status | --no-status] [--]
15-
[[-i | -o ]<file>...]
14+
[--date=<date>] [--cleanup=<mode>] [--status | --no-status]
15+
[-i | -o] [--] [<file>...]
1616

1717
DESCRIPTION
1818
-----------

builtin/add.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ static struct option builtin_add_options[] = {
331331

332332
static 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
}

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ __git_ps1 ()
255255
(describe)
256256
git describe HEAD ;;
257257
(* | default)
258-
git describe --exact-match HEAD ;;
258+
git describe --tags --exact-match HEAD ;;
259259
esac 2>/dev/null)" ||
260260

261261
b="$(cut -c1-7 "$g/HEAD" 2>/dev/null)..." ||

0 commit comments

Comments
 (0)