zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _git: fix gitk
@ 2011-04-22 17:43 Felipe Contreras
  2011-04-25  8:19 ` Frank Terbeck
  0 siblings, 1 reply; 8+ messages in thread
From: Felipe Contreras @ 2011-04-22 17:43 UTC (permalink / raw)
  To: zsh-workers; +Cc: Nikolai Weibull, Felipe Contreras

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-25 15:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-22 17:43 [PATCH] _git: fix gitk Felipe Contreras
2011-04-25  8:19 ` Frank Terbeck
2011-04-25 11:16   ` Felipe Contreras
2011-04-25 11:49     ` Frank Terbeck
2011-04-25 12:28       ` Simon Ruderich
2011-04-25 12:36         ` Frank Terbeck
2011-04-25 13:23           ` [PATCH] _git: Add support for tig similar to gitk. (Was: [PATCH] _git: fix gitk) Simon Ruderich
2011-04-25 15:03             ` [PATCH] _git: Add support for tig similar to gitk Frank Terbeck

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).