* PATCH: Completion/Unix/Command/_git: Prevent clash with _remote_files() in _ssh.
@ 2011-11-24 18:04 Simon Ruderich
0 siblings, 0 replies; only message in thread
From: Simon Ruderich @ 2011-11-24 18:04 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]
---
Hello,
This patch prevents a clash with _remote_files() in _git and
_ssh which both use the same function name.
This caused the file completion of _ssh to stop if _git was used.
Regards,
Simon
Completion/Unix/Command/_git | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 6221eb6..4a830f2 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5445,7 +5445,7 @@ __git_tree_files () {
# Repository Argument Types
# _remote_files
-_remote_files () {
+_remote_files_git () {
# FIXME: these should be imported from _ssh
# TODO: this should take -/ to only get directories
# There should be coloring based on all the different ls -F classifiers.
@@ -5484,7 +5484,7 @@ __git_remote_repositories () {
service= _ssh
if compset -P '*:'; then
- _remote_files
+ _remote_files_git
else
_ssh_hosts -S:
fi
--
1.7.7.3
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-24 18:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24 18:04 PATCH: Completion/Unix/Command/_git: Prevent clash with _remote_files() in _ssh Simon Ruderich
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).