about summary refs log tree commit diff
diff options
context:
space:
mode:
-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