mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 07:10:58 +02:00
Felipe Contreras: 29028: _git: Add useful completion for `gitk'.
This commit is contained in:
parent
ecb32c6b12
commit
12d12ebc92
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-04-25 Frank Terbeck <ft@bewatermyfriend.org>
|
||||||
|
|
||||||
|
* Felipe Contreras: 29028: Completion/Unix/Command/_git: Add
|
||||||
|
useful completion for `gitk'.
|
||||||
|
|
||||||
2011-04-24 Barton E. Schaefer <schaefer@zsh.org>
|
2011-04-24 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* Jun T.: 29031: Src/Zle/complist.c: increment global minfo
|
* Jun T.: 29031: Src/Zle/complist.c: increment global minfo
|
||||||
|
@ -14508,5 +14513,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5260 $
|
* $Revision: 1.5261 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#compdef git git-cvsserver git-receive-pack git-upload-archive git-upload-pack git-shell
|
#compdef git git-cvsserver git-receive-pack git-upload-archive git-upload-pack git-shell gitk
|
||||||
|
|
||||||
# Some parts of this completion's behaviour are configurable:
|
# Some parts of this completion's behaviour are configurable:
|
||||||
#
|
#
|
||||||
|
@ -4466,8 +4466,7 @@ _git_commands () {
|
||||||
stash:'stash away changes to dirty working directory'
|
stash:'stash away changes to dirty working directory'
|
||||||
status:'show working-tree status'
|
status:'show working-tree status'
|
||||||
submodule:'initialize, update, or inspect submodules'
|
submodule:'initialize, update, or inspect submodules'
|
||||||
tag:'create, list, delete or verify tag object signed with GPG'
|
tag:'create, list, delete or verify tag object signed with GPG')
|
||||||
gitk:'brows the repository interactively')
|
|
||||||
|
|
||||||
local -a ancillary_manipulator_commands
|
local -a ancillary_manipulator_commands
|
||||||
ancillary_manipulator_commands=(
|
ancillary_manipulator_commands=(
|
||||||
|
@ -5962,6 +5961,11 @@ __git_color_attributes () {
|
||||||
_describe -t attributes attribute attributes $*
|
_describe -t attributes attribute attributes $*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(( $+functions[_gitk] )) ||
|
||||||
|
_gitk () {
|
||||||
|
_git-log
|
||||||
|
}
|
||||||
|
|
||||||
# Now, for the main driver…
|
# Now, for the main driver…
|
||||||
_git() {
|
_git() {
|
||||||
if (( CURRENT > 2 )); then
|
if (( CURRENT > 2 )); then
|
||||||
|
|
Loading…
Reference in a new issue