Browse Source

Merge branch 'maint-1.6.0' into maint-1.6.1

* maint-1.6.0:
  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.
maint
Junio C Hamano 16 years ago
parent
commit
dcbf041745
  1. 1
      Documentation/git-tag.txt
  2. 8
      Documentation/technical/api-history-graph.txt
  3. 9
      contrib/completion/git-completion.bash

1
Documentation/git-tag.txt

@ -63,6 +63,7 @@ OPTIONS
are printed when using -l. are printed when using -l.
The default is not to print any annotation lines. The default is not to print any annotation lines.
If no number is given to `-n`, only the first line is printed. If no number is given to `-n`, only the first line is printed.
If the tag is not annotated, the commit message is displayed instead.


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

8
Documentation/technical/api-history-graph.txt

@ -148,22 +148,22 @@ outputting that information, if desired.
------------ ------------
* *
* *
M *
|\ |\
* | * |
| | * | | *
| \ \ | \ \
| \ \ | \ \
M-. \ \ *-. \ \
|\ \ \ \ |\ \ \ \
| | * | | | | * | |
| | | | | * | | | | | *
| | | | | * | | | | | *
| | | | | M | | | | | *
| | | | | |\ | | | | | |\
| | | | | | * | | | | | | *
| * | | | | | | * | | | | |
| | | | | M \ | | | | | * \
| | | | | |\ | | | | | | |\ |
| | | | * | | | | | | | * | | |
| | | | * | | | | | | | * | | |

9
contrib/completion/git-completion.bash

@ -935,6 +935,11 @@ _git_log ()
__git_has_doubledash && return __git_has_doubledash && return


local cur="${COMP_WORDS[COMP_CWORD]}" local cur="${COMP_WORDS[COMP_CWORD]}"
local g="$(git rev-parse --git-dir 2>/dev/null)"
local merge=""
if [ -f "$g/MERGE_HEAD" ]; then
merge="--merge"
fi
case "$cur" in case "$cur" in
--pretty=*) --pretty=*)
__gitcomp " __gitcomp "
@ -966,7 +971,7 @@ _git_log ()
--decorate --diff-filter= --decorate --diff-filter=
--color-words --walk-reflogs --color-words --walk-reflogs
--parents --children --full-history --parents --children --full-history
--merge $merge
" "
return return
;; ;;
@ -1751,7 +1756,7 @@ _gitk ()
local cur="${COMP_WORDS[COMP_CWORD]}" local cur="${COMP_WORDS[COMP_CWORD]}"
local g="$(git rev-parse --git-dir 2>/dev/null)" local g="$(git rev-parse --git-dir 2>/dev/null)"
local merge="" local merge=""
if [ -f $g/MERGE_HEAD ]; then if [ -f "$g/MERGE_HEAD" ]; then
merge="--merge" merge="--merge"
fi fi
case "$cur" in case "$cur" in

Loading…
Cancel
Save