about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-09-30 19:41:56 +0000
committerClint Adams <clint@users.sourceforge.net>2007-09-30 19:41:56 +0000
commitcac51ee8c3d155531d4f996dcd66fe497739661c (patch)
treeb13212391d1ac1e951a3f1592917fefd18033f21
parent40583814f90bdaac8c62f14a73198e81d4025680 (diff)
downloadzsh-cac51ee8c3d155531d4f996dcd66fe497739661c.tar.gz
zsh-cac51ee8c3d155531d4f996dcd66fe497739661c.tar.xz
zsh-cac51ee8c3d155531d4f996dcd66fe497739661c.zip
23875: complete heads, tags, and files after git log.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f584c4aad..d037216bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-09-30  Clint Adams  <clint@zsh.org>
 
+	* 23875: Completion/Unix/Command/_git: complete heads, tags, and
+	files after git log.
+
 	* 23874: Completion/Unix/Command/_git: only declare
 	revision_arguments parameter once.
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 16ef865a6..355e4e511 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1705,7 +1705,8 @@ _git-log () {
   __git_setup_revision_arguments
 
   _arguments -S \
-    $revision_arguments && ret=0
+    "$revision_arguments[@]" \
+    '*:tree-ish: _alternative c\:\:__git_committishs f\:\:_files' && ret=0
 }
 
 # TODO: repository needs fixing