1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-01 20:11:06 +01:00

Ingmar Vanhassel: 26467: add "git remote rename" completion.

This commit is contained in:
Clint Adams 2009-01-29 17:34:27 +00:00
parent 9a2e1862e0
commit 4ddc411d71
2 changed files with 9 additions and 2 deletions

View file

@ -14,6 +14,8 @@
completion of modinfo -f.
* Jörg Sommer: 26453: Completion/Linux/Command/_modutils: complete
modinfo -k.
* Ingmar Vanhassel: 26467: Completion/Unix/Command/_git: add "git
remote rename" completion.
2009-01-29 Peter Stephenson <pws@csr.com>
@ -11045,5 +11047,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4536 $
* $Revision: 1.4537 $
*****************************************************

View file

@ -665,7 +665,8 @@ _git-remote () {
'show:show information about a given remote'
'prune:delete all stale tracking branches for a given remote'
'update:fetch updates for a set of remotes'
'rm:remove a remote from .git/config and all associated tracking branches')
'rm:remove a remote from .git/config and all associated tracking branches'
'rename:rename a remote from .git/config and update all associated tracking branches')
_describe -t commands 'sub-command' commands && ret=0
;;
@ -694,6 +695,10 @@ _git-remote () {
;;
(rm)
__git_remotes && ret=0
;;
(rename)
__git_remotes && ret=0
;;
esac
;;
esac