git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: Tejun Heo <tj@kernel.org>, Git Mailing List <git@vger.kernel.org>
Subject: Re: [RFC PATCH] Make 'git request-pull' more strict about matching local/remote branches
Date: Wed, 22 Jan 2014 14:07:58 -0800	[thread overview]
Message-ID: <CA+55aFwhrfbxVZDjf8mcaTOXqGEjjirTq_S-8N2H60VcVP7P6w@mail.gmail.com> (raw)
In-Reply-To: <CA+55aFxSiKhM=4GtFaruWNZFNaUgCpVHsJOWJ9Qcd19nz6YYTw@mail.gmail.com>

On Wed, Jan 22, 2014 at 2:03 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> Any ideas? The hacky way is to do "| head -1" to take the first
> show-ref output, and then check if you get a different result if you
> re-do it using "show-ref --tags". But that sounds really excessively
> hacky. Is there a good way to do it?

Using "git show-refs --tags --heads" would work for the common case
(since that ignores remote branches), but would then disallow remote
branches entirely.

That might be ok in practice, but it's definitely wrong too.

I'm probably missing some obvious solution.

                    Linus

  reply	other threads:[~2014-01-22 22:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 21:08 [RFC PATCH] Make 'git request-pull' more strict about matching local/remote branches Linus Torvalds
2014-01-22 21:46 ` Junio C Hamano
2014-01-22 22:03   ` Linus Torvalds
2014-01-22 22:07     ` Linus Torvalds [this message]
2014-01-22 22:14 ` Junio C Hamano
2014-01-22 22:20   ` Linus Torvalds
2014-01-22 22:27   ` Junio C Hamano

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=CA+55aFwhrfbxVZDjf8mcaTOXqGEjjirTq_S-8N2H60VcVP7P6w@mail.gmail.com \
    --to=torvalds@linux-foundation.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=tj@kernel.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.
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).