From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26490 invoked by alias); 19 Oct 2011 11:31:22 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16522 Received: (qmail 18352 invoked from network); 19 Oct 2011 11:31:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: zsh-users@zsh.org Subject: Re: [PATCH] Misc/vcs_info-examples - avoid showing remote branch In-Reply-To: <20111019033659.7718667e@gmail.com> (Suraj N. Kurapati's message of "Wed, 19 Oct 2011 03:36:59 -0700") References: <20111019033659.7718667e@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Date: Wed, 19 Oct 2011 13:22:52 +0200 Message-ID: <87vcrli5tf.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: NDMwNDQ0 Suraj N. Kurapati wrote: [...] > It prevents the display of remote branch if the remote branch has > the same name as the local branch (minus the remote, of course). [...] > - if [[ -n ${remote} ]] ; then > + if [[ -n ${remote} && ${remote#*/} != ${hook_com[branch]} ]] ; then I like that. I'll apply it when I get home. Regards, Frank -- In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925