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

Re: Re* [RFC PATCH 2/1] Make request-pull able to take a refspec of form local:remote

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jan 30, 2014, 00:40 UTC
Message-ID
<CA+55aFyWM+VDa4mdqseNy3tSnp23x=2sPtHf5KpxsfROeHbVGw@mail.gmail.com>
In-Reply-To
<xmqqfvo6icqf.fsf_-_@gitster.dls.corp.google.com>
On Wed, Jan 29, 2014 at 3:34 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
>
> I am not yet doing the docs, but here is a minimal (and I think is
> the most sensible) fix to the "If I asked a tag to be pulled, I used
> to get the message from the tag in the output---the updated code no
> longer does so" problem.

That was a complete oversight/bug on my part, due to just removing the tag_name special cases, not thinking about the tag message.

Thinking some more about the tag_name issue, I realize that the other patch ("Make request-pull able to take a refspec of form local:remote") broke another thing.

The first patch pretty-printed the local branch-name, removing "refs/" and possibly "heads/" from the local refname. So for a branch, it would ask people to just pull from the branch-name, and for a tag it would ask people to pull from "tags/name", which is good policy. So if you had a tag called "for-linus", it would say so (using "tags/for-linus").

But the local:remote syntax thing ends up breaking that nice feature. The old find_matching_refs would actually cause us to show the "tags" part if it existed on the remote, but that had become pointless and counter-productive with the first patch. But with the second patch, maybe we should reinstate that logic..

                Linus
Previous: brian m. carlsonNext: Junio C Hamano
Message 9 of 13 in “Make request-pull able to take a refspec of form local:remote”
  1. 2/1 Make request-pull able to take a refspec of form local:remoteLinus Torvalds, Jan 23, 2014
  2. Junio C HamanoJan 23, 2014
  3. Linus TorvaldsJan 23, 2014
  4. Junio C HamanoJan 23, 2014
  5. Linus TorvaldsJan 23, 2014
  6. Junio C HamanoJan 24, 2014
  7. Re* [RFC PATCH 2/1] Make request-pull able to take a refspec of form local:remoteJunio C Hamano, Jan 29, 2014
  8. brian m. carlsonJan 30, 2014
  9. Linus TorvaldsJan 30, 2014
  10. Junio C HamanoFeb 25, 2014
  11. Junio C HamanoMar 12, 2014
  12. Eric SunshineMar 12, 2014
  13. Junio C HamanoMar 13, 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.