From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24791 invoked from network); 29 Jan 2009 12:22:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Jan 2009 12:22:06 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 67120 invoked from network); 29 Jan 2009 12:22:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Jan 2009 12:22:00 -0000 Received: (qmail 9143 invoked by alias); 29 Jan 2009 12:21:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26467 Received: (qmail 9127 invoked from network); 29 Jan 2009 12:21:54 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Jan 2009 12:21:54 -0000 Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by bifrost.dotsrc.org (Postfix) with ESMTPS id DC99380271F0 for ; Thu, 29 Jan 2009 13:21:51 +0100 (CET) Received: from ingmar by bach.exherbo.org with local (Exim 4.69) (envelope-from ) id 1LSVu2-0000Km-UL; Thu, 29 Jan 2009 12:21:50 +0000 From: Ingmar Vanhassel To: Zsh Hackers' List Cc: Ingmar Vanhassel Subject: [PATCH] Add "git remote rename" completion. Date: Thu, 29 Jan 2009 12:21:43 +0000 Message-Id: <1233231710-1204-2-git-send-email-ingmar@exherbo.org> X-Mailer: git-send-email 1.6.0.1 In-Reply-To: <1233231710-1204-1-git-send-email-ingmar@exherbo.org> References: <1233231710-1204-1-git-send-email-ingmar@exherbo.org> X-Virus-Scanned: ClamAV 0.92.1/8918/Thu Jan 29 12:42:19 2009 on bifrost X-Virus-Status: Clean --- 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