Skip to content

Commit b19293d

Browse files
committed
Merge branch 'maint-1.6.1' into maint
* maint-1.6.1: Fix bash completion in path with spaces bash completion: only show 'log --merge' if merging git-tag(1): add hint about commit messages Documentation: update graph api example. Conflicts: contrib/completion/git-completion.bash
2 parents 510a309 + dcbf041 commit b19293d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Documentation/git-tag.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ OPTIONS
6363
are printed when using -l.
6464
The default is not to print any annotation lines.
6565
If no number is given to `-n`, only the first line is printed.
66+
If the tag is not annotated, the commit message is displayed instead.
6667

6768
-l <pattern>::
6869
List tags with names that match the given pattern (or all if no pattern is given).

Documentation/technical/api-history-graph.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,22 @@ outputting that information, if desired.
148148
------------
149149
*
150150
*
151-
M
151+
*
152152
|\
153153
* |
154154
| | *
155155
| \ \
156156
| \ \
157-
M-. \ \
157+
*-. \ \
158158
|\ \ \ \
159159
| | * | |
160160
| | | | | *
161161
| | | | | *
162-
| | | | | M
162+
| | | | | *
163163
| | | | | |\
164164
| | | | | | *
165165
| * | | | | |
166-
| | | | | M \
166+
| | | | | * \
167167
| | | | | |\ |
168168
| | | | * | | |
169169
| | | | * | | |

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ _git_log ()
10051005
local cur="${COMP_WORDS[COMP_CWORD]}"
10061006
local g="$(git rev-parse --git-dir 2>/dev/null)"
10071007
local merge=""
1008-
if [ -f $g/MERGE_HEAD ]; then
1008+
if [ -f "$g/MERGE_HEAD" ]; then
10091009
merge="--merge"
10101010
fi
10111011
case "$cur" in
@@ -1843,7 +1843,7 @@ _gitk ()
18431843
local cur="${COMP_WORDS[COMP_CWORD]}"
18441844
local g="$(git rev-parse --git-dir 2>/dev/null)"
18451845
local merge=""
1846-
if [ -f $g/MERGE_HEAD ]; then
1846+
if [ -f "$g/MERGE_HEAD" ]; then
18471847
merge="--merge"
18481848
fi
18491849
case "$cur" in

0 commit comments

Comments
 (0)