summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-07-03 07:08:14 +0000
committerClint Adams <clint@users.sourceforge.net>2007-07-03 07:08:14 +0000
commit38fbcffca02279495154ee6d50fd0dbb94a69b55 (patch)
tree403a330e35a5b8eca505871ea8cf25ffb3fdfefb /Completion/Unix/Command/_git
parent23639: merge in git quiltimport completion from Nikolai Weibull's repository. (diff)
downloadzsh-38fbcffca02279495154ee6d50fd0dbb94a69b55.tar
zsh-38fbcffca02279495154ee6d50fd0dbb94a69b55.tar.gz
zsh-38fbcffca02279495154ee6d50fd0dbb94a69b55.tar.bz2
zsh-38fbcffca02279495154ee6d50fd0dbb94a69b55.tar.lz
zsh-38fbcffca02279495154ee6d50fd0dbb94a69b55.tar.xz
zsh-38fbcffca02279495154ee6d50fd0dbb94a69b55.tar.zst
zsh-38fbcffca02279495154ee6d50fd0dbb94a69b55.zip
23644: merge in git remote completion from Nikolai Weibull's repository.
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git93
1 files changed, 92 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 7a86409e5..23b3fba17 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1,4 +1,4 @@
-#compdef git git-annotate git-apply git-checkout-index git-clean git-commit-tree git-describe git-hash-object git-index-pack git-init-db git-merge-index git-merge-tree git-mktag git-mktree git-pack-objects git-prune-packed git-read-tree git-unpack-objects git-update-index git-write-tree git-cat-file git-diff-index git-diff-files git-diff-stages git-diff-tree git-fsck-objects git-ls-files git-ls-tree git-quiltimport git-merge-base git-name-rev git-rev-list git-show-index git-tar-tree git-unpack-file git-var git-verify-pack git-clone-pack git-fetch-pack git-http-fetch git-local-fetch git-peek-remote git-receive-pack git-send-pack git-ssh-fetch git-ssh-upload git-update-server-info git-upload-pack git-add git-am git-applymbox git-bisect git-branch git-checkout git-cherry-pick git-clone git-commit git-diff git-fetch git-format-patch git-grep git-log git-ls-remote git-merge git-mv git-octopus git-pull git-push git-rebase git-repack git-reset git-resolve git-revert git-shortlog git-show-branch git-status git-verify-tag git-whatchanged git-applypatch git-archimport git-archive git-convert-objects git-cvsimport git-lost-found git-merge-one-file git-prune git-relink git-svnimport git-symbolic-ref git-tag git-update-ref git-check-ref-format git-cherry git-count-objects git-daemon git-get-tar-commit-id git-mailinfo git-mailsplit git-patch-id git-request-pull git-send-email git-stripspace
+#compdef git git-annotate git-apply git-checkout-index git-clean git-commit-tree git-describe git-hash-object git-index-pack git-init-db git-merge-index git-merge-tree git-mktag git-mktree git-pack-objects git-prune-packed git-read-tree git-remote git-unpack-objects git-update-index git-write-tree git-cat-file git-diff-index git-diff-files git-diff-stages git-diff-tree git-fsck-objects git-ls-files git-ls-tree git-quiltimport git-merge-base git-name-rev git-rev-list git-show-index git-tar-tree git-unpack-file git-var git-verify-pack git-clone-pack git-fetch-pack git-http-fetch git-local-fetch git-peek-remote git-receive-pack git-send-pack git-ssh-fetch git-ssh-upload git-update-server-info git-upload-pack git-add git-am git-applymbox git-bisect git-branch git-checkout git-cherry-pick git-clone git-commit git-diff git-fetch git-format-patch git-grep git-log git-ls-remote git-merge git-mv git-octopus git-pull git-push git-rebase git-repack git-reset git-resolve git-revert git-shortlog git-show-branch git-status git-verify-tag git-whatchanged git-applypatch git-archimport git-archive git-convert-objects git-cvsimport git-lost-found git-merge-one-file git-prune git-relink git-svnimport git-symbolic-ref git-tag git-update-ref git-check-ref-format git-cherry git-count-objects git-daemon git-get-tar-commit-id git-mailinfo git-mailsplit git-patch-id git-request-pull git-send-email git-stripspace
# Commands not completed:
# git-sh-setup
@@ -151,6 +151,7 @@ _git_commands () {
'rebase:rebases local commits to new upstream head'
'receive-pack:command invoked by send-pack to receive what is pushed to it'
'relink:hardlinks acommon objects in local repositories'
+ 'remote:manage set of tracked repositories'
'repack:packs unpacked objects in a repository'
'request-pull:generates a summary of pending changes'
'reset:resets current HEAD to the specified state'
@@ -361,6 +362,47 @@ _git-read-tree () {
fi
}
+_git-remote () {
+ local curcontext=$curcontext state line
+ declare -A opt_args
+
+ _arguments -C \
+ ':command:->command' \
+ '*::options:->options' && ret=0
+
+ case $state in