Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Add "git remote rename" completion.
- X-seq: zsh-workers 26467
- From: Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxxxxx>
- Subject: [PATCH] Add "git remote rename" completion.
- Date: Thu, 29 Jan 2009 12:21:43 +0000
- Cc: Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
- In-reply-to: <1233231710-1204-1-git-send-email-ingmar@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1233231710-1204-1-git-send-email-ingmar@xxxxxxxxxxx>
---
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 d5de414..7e6a174 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -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
--
1.6.0.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author