git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH] Make 'git request-pull' more strict about matching local/remote branches

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jan 22, 2014, 22:07 UTC
Message-ID
<CA+55aFwhrfbxVZDjf8mcaTOXqGEjjirTq_S-8N2H60VcVP7P6w@mail.gmail.com>
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:

Show 5 quoted lines
>
> 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
Previous: Linus TorvaldsNext: Junio C Hamano
Message 4 of 7 in “Make 'git request-pull' more strict about matching local/remote branches”
  1. Make 'git request-pull' more strict about matching local/remote branchesLinus Torvalds, Jan 22, 2014
  2. Junio C HamanoJan 22, 2014
  3. Linus TorvaldsJan 22, 2014
  4. Linus TorvaldsJan 22, 2014
  5. Junio C HamanoJan 22, 2014
  6. Linus TorvaldsJan 22, 2014
  7. Junio C HamanoJan 22, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.