summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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