From 9161a16b2e2c770c7d518a394208476cf6c418fd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 23 Nov 2014 21:03:37 +0000 Subject: 33729: "git remote add" should complete local repositories --- Completion/Unix/Command/_git | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 38bd72979..8fcfc153d 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -3161,7 +3161,15 @@ _git-remote () { '(-m --master)'{-m,--master=}'[set HEAD of remote to point to given master branch]: :__git_branch_names' \ '--mirror[do not use separate remotes]' \ ':name:__git_remotes' \ - ':url:_urls' && ret=0 + ':repository:->repository' && ret=0 + case $state in + (repository) + _alternative \ + 'local-repositories::__git_local_repositories' \ + 'remote-repositories::__git_remote_repositories' \ + 'urls::_urls' && ret=0 + ;; + esac ;; (rename) _arguments \ -- cgit 1.4.1