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

Re: [PATCH] pull: refuse complete src:dst fetchspec arguments

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 29, 2009, 16:58 UTC
Message-ID
<7vk4w5g1j0.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20091229200513.6117@nanako3.lavabit.com>
Nanako Shiraishi <nanako3@lavabit.com> writes:
> Junio, could you tell us what happened to this thread?
>
> The patch rejects "git pull repo A:B" because it is almost always a mistake;
> I think it makes sense.

It seems that we got sidetracked into a long thread on different (but interesting) side topics. I think what the patch attempts to do is quite sane, and the implementation is very straightforward. Perhaps we should resurrect it, but with a proper "declare deprecation now, first warn then refuse in two releases" steps. I.e. the actual refusal would happen in 1.7.1 or later.

One side topic was Daniel wondering if we should restrict the value of B for "git fetch repo A:B" so that "fetch" is not used to update the refs outside refs/remotes namespace. I personally think it is an unwarranted restriction, and also it is more or less an unrelated issue anyway.

Another side topic that distracted us was about the difference between the autogenerated commit log messages for "git pull origin topic" and "git fetch && git merge origin/topic". I personally think it is very good that the latter already says "Merge remote branch 'origin/topic'" and there is no need to turn that into "Merge 'topic' of ..." (actually I'd prefer it the way it is).

Previous: Nanako Shiraishi
Message 21 of 21 in “pull: refuse complete src:dst fetchspec arguments”
  1. pull: refuse complete src:dst fetchspec argumentsThomas Rast, Oct 20, 2009
  2. Thomas RastOct 20, 2009
  3. Wesley J. LandakerOct 20, 2009
  4. Sean EstabrooksOct 20, 2009
  5. Junio C HamanoOct 20, 2009
  6. Daniel BarkalowOct 21, 2009
  7. Sean EstabrooksOct 21, 2009
  8. Daniel BarkalowOct 21, 2009
  9. Sean EstabrooksOct 21, 2009
  10. Björn SteinbrinkOct 21, 2009
  11. Daniel BarkalowOct 21, 2009
  12. Thomas RastOct 21, 2009
  13. Jeff KingOct 23, 2009
  14. Daniel BarkalowOct 23, 2009
  15. Jeff KingOct 24, 2009
  16. Junio C HamanoOct 24, 2009
  17. Thomas RastOct 21, 2009
  18. Thomas RastNov 15, 2009
  19. Junio C HamanoNov 15, 2009
  20. Nanako ShiraishiDec 29, 2009
  21. Junio C HamanoDec 29, 2009

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.