Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: fix gitk
- X-seq: zsh-workers 29028
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _git: fix gitk
- Date: Fri, 22 Apr 2011 20:43:01 +0300
- Cc: Nikolai Weibull <now@xxxxxxxx>, Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:content-transfer-encoding; bh=MaJSfuGO+l41rB8/gAn/g4A2kOiKSWCnjx2PiC6fDT8=; b=WhiLajOy+kO8OuQY1oReHsuCESE8t9IyF4OxkvyKoh8YSJgGHA0I36Djky+plTP7yr +HyAGsi16eEmVdQv0mMAM2Sm1xRdHyHAdMiTZ9AicqEVzpyN7c6rBrRw/LK68nojvKe/ TZqPxqS4GgkW7YqnIi3MWgsiSOy1DpAwQQ5Rc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=aKOoJO373BAIACB6nzCTfa4DHCxIuovcjvmukrEQ3LHGG4GsRpiW3Aub0e3EyQRtGN +qnFr5fhhxVZRm+9X1FKhdmRBqYpnJGvfMnwsvNUbHwzTaROwUJEexfcItKWNYDfTmUB ZRPt1MDZGakcd50EMwWtugmBjFLoIMinukPsg=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
---
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 640fa07..92227f4 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:
#
@@ -4463,8 +4463,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=(
@@ -5959,6 +5958,11 @@ __git_color_attributes () {
_describe -t attributes attribute attributes $*
}
+(( $+functions[_gitk] )) ||
+_gitk () {
+ _git-log
+}
+
# Now, for the main driver…
_git() {
if (( CURRENT > 2 )); then
--
1.7.5.rc3
Messages sorted by:
Reverse Date,
Date,
Thread,
Author