summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2011-04-25 15:04:47 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2011-04-25 15:04:47 +0000
commite38f65bba4bc6d4a57a2272d8960b2312142bd92 (patch)
treee23016e37df12ea239f05a4478e1a546424c8989
parent12d12ebc9235a2b7e5e2cb672e6399a083194932 (diff)
downloadzsh-e38f65bba4bc6d4a57a2272d8960b2312142bd92.tar.gz
zsh-e38f65bba4bc6d4a57a2272d8960b2312142bd92.tar.xz
zsh-e38f65bba4bc6d4a57a2272d8960b2312142bd92.zip
Simon Ruderich: 29041: _git: Add completion for `tig'.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_git7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ffbc8c77..36e5c173b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
 	* Felipe Contreras: 29028: Completion/Unix/Command/_git: Add
 	useful completion for `gitk'.
 
+	* Simon Ruderich: 29041: Completion/Unix/Command/_git: Add
+	completion for `tig' like the one for `gitk' from 29028.
+
 2011-04-24  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* Jun T.: 29031: Src/Zle/complist.c: increment global minfo
@@ -14513,5 +14516,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5261 $
+* $Revision: 1.5262 $
 *****************************************************
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 0a7128087..4664cfa6e 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 gitk
+#compdef git git-cvsserver git-receive-pack git-upload-archive git-upload-pack git-shell gitk tig
 
 # Some parts of this completion's behaviour are configurable:
 #
@@ -5966,6 +5966,11 @@ _gitk () {
   _git-log
 }
 
+(( $+functions[_tig] )) ||
+_tig () {
+  _git-log
+}
+
 # Now, for the main driver…
 _git() {
   if (( CURRENT > 2 )); then