about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 95ab8bb98..521503dc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-10-01  Clint Adams  <clint@zsh.org>
 
+	* Nikolai Weibull: 23879: Completion/Unix/Command/_git: complete
+	only cached files after git log.
+
 	* Jesse Weinstein: 23878: Completion/Unix/Command/_ranlib:
 	completion for ranlib.
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 355e4e511..5d4a181e2 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1705,8 +1705,8 @@ _git-log () {
   __git_setup_revision_arguments
 
   _arguments -S \
-    "$revision_arguments[@]" \
-    '*:tree-ish: _alternative c\:\:__git_committishs f\:\:_files' && ret=0
+    $revision_arguments \
+    '*:file:__git_cached_files' && ret=0
 }
 
 # TODO: repository needs fixing