zsh-users
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh-users@zsh.org
Subject: Re: [PATCH] Misc/vcs_info-examples - avoid showing remote branch
Date: Wed, 19 Oct 2011 13:22:52 +0200	[thread overview]
Message-ID: <87vcrli5tf.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <20111019033659.7718667e@gmail.com> (Suraj N. Kurapati's message of "Wed, 19 Oct 2011 03:36:59 -0700")

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


      reply	other threads:[~2011-10-19 11:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19 10:36 Suraj N. Kurapati
2011-10-19 11:22 ` Frank Terbeck [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vcrli5tf.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).