diff options
author | Frank Terbeck <bewater@users.sourceforge.net> | 2011-07-01 07:36:48 +0000 |
---|---|---|
committer | Frank Terbeck <bewater@users.sourceforge.net> | 2011-07-01 07:36:48 +0000 |
commit | 3761265e452af7a31d9c7c10ed6900deeb5291c4 (patch) | |
tree | 61f66f759f894ee5ef01acfcde41d39060d1d1d3 /Completion | |
parent | f028b97e8f0c7906af4a76909436e9a7f5a06d8a (diff) | |
download | zsh-3761265e452af7a31d9c7c10ed6900deeb5291c4.tar.gz zsh-3761265e452af7a31d9c7c10ed6900deeb5291c4.tar.xz zsh-3761265e452af7a31d9c7c10ed6900deeb5291c4.zip |
29518: _git: Fall back to file completion for unknown sub-commands.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_git | 7 |
1 files changed, 6 insertions, 1 deletions
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 |