Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: (1/3) _git: Fall back to file completion if nothing else works
---
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 e062705..362ec78 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
--
1.7.6
Messages sorted by:
Reverse Date,
Date,
Thread,
Author