diff options
author | Frank Terbeck <bewater@users.sourceforge.net> | 2011-04-25 11:50:14 +0000 |
---|---|---|
committer | Frank Terbeck <bewater@users.sourceforge.net> | 2011-04-25 11:50:14 +0000 |
commit | 12d12ebc9235a2b7e5e2cb672e6399a083194932 (patch) | |
tree | 4e76ffb625920c73319ebebe7807cd1c88d80bbb /Completion/Unix/Command | |
parent | ecb32c6b1206c868de601596a3da812232041340 (diff) | |
download | zsh-12d12ebc9235a2b7e5e2cb672e6399a083194932.tar.gz zsh-12d12ebc9235a2b7e5e2cb672e6399a083194932.tar.xz zsh-12d12ebc9235a2b7e5e2cb672e6399a083194932.zip |
Felipe Contreras: 29028: _git: Add useful completion for `gitk'.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_git | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 37ea3383a..0a7128087 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -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: # @@ -4466,8 +4466,7 @@ _git_commands () { stash:'stash away changes to dirty working directory' status:'show working-tree status' submodule:'initialize, update, or inspect submodules' - tag:'create, list, delete or verify tag object signed with GPG' - gitk:'brows the repository interactively') + tag:'create, list, delete or verify tag object signed with GPG') local -a ancillary_manipulator_commands ancillary_manipulator_commands=( @@ -5962,6 +5961,11 @@ __git_color_attributes () { _describe -t attributes attribute attributes $* } +(( $+functions[_gitk] )) || +_gitk () { + _git-log +} + # Now, for the main driver… _git() { if (( CURRENT > 2 )); then |