about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2011-07-01 07:36:48 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2011-07-01 07:36:48 +0000
commit3761265e452af7a31d9c7c10ed6900deeb5291c4 (patch)
tree61f66f759f894ee5ef01acfcde41d39060d1d1d3
parentf028b97e8f0c7906af4a76909436e9a7f5a06d8a (diff)
downloadzsh-3761265e452af7a31d9c7c10ed6900deeb5291c4.tar.gz
zsh-3761265e452af7a31d9c7c10ed6900deeb5291c4.tar.xz
zsh-3761265e452af7a31d9c7c10ed6900deeb5291c4.zip
29518: _git: Fall back to file completion for unknown sub-commands.
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Command/_git7
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 17f7db40a..c589526e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-01  Frank Terbeck  <ft@bewatermyfriend.org>
+
+	* 29518: Completion/Unix/Command/_git: Fall back to file
+	completion for unknown sub-commands.
+
 2011-06-30  Frank Terbeck  <ft@bewatermyfriend.org>
 
 	* 29526: Functions/VCS_Info/vcs_info: Set `max-exports' early
@@ -15057,5 +15062,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5383 $
+* $Revision: 1.5384 $
 *****************************************************
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index e062705ee..362ec7812 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -6023,7 +6023,12 @@ _git() {
       (option-or-argument)
         curcontext=${curcontext%:*:*}:git-$words[1]:
 
-        _call_function ret _git-$words[1]
+        if (( ${+functions[_git-$words[1]]} )); then
+            _git-$words[1]
+        else
+            _path_files
+            ret=$?
+        fi
         ;;
     esac
   else