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
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2014, 22:27 UTC
Message-ID
<xmqqsisfwt3c.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqqwqhrwtoy.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 6 quoted lines
> ... there is no 'for-linus' branch locally, so there is no way for
> him to say
>
>         git request-pull initial origin for-linus
>
> unless he creates it locally first.

In real life on the kernel list, for-linus may have to be a signed tag, and pushed out 1-to-1 name mapping, so in that sense, "unless he creates it locally first" may not be a problem.

I'd throw this into "No, this is not the only way to do so and there are workarounds available if we suddenly tightened the rule and broke those who relied on this behaviour. But this is not a less good way compared to the alternative of creating the same-named ref first, so we _are_ breaking people deliberately---is that worth the safety for always-push-one-to-one people?" category.

I'd throw the other one (i.e. 5150.5) into "that is crazy enough that a short apology in the Release Notes is sufficient before breaking those who relied on that behaviour" category, on the other hand ;-).

Previous: Linus Torvalds
Message 7 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.