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

Re: 'upstream' branches.

From
Junio C Hamano <junkio@cox.net>
Date
May 6, 2007, 06:36 UTC
Message-ID
<7v3b2ah30f.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070505225249.GE2898@steel.home>
Alex Riesen <raa.lkml@gmail.com> writes:
Show 16 quoted lines
> David Woodhouse, Sat, May 05, 2007 19:50:28 +0200:
>> > > 
>> > > Is there a better way?
>> > 
>> > I would just remove the pluses. git-fetch will say that the branch is
>> > already up-to-date, if the local branch already has everything the
>> > remote has.
>> 
>> Then after I pull from Linus' tree, I can't pull from the mtd tree -- it
>> complains that the 'linus' branch there can't be fast-forwarded, and
>> refuses to pull the 'master' branch.
>
> Which got me by surprise (just tried). I though it'd notice that all
> the commits are already present...
>
> Experts, is it really supposed to be that way?

I am not sure what the issue is here. If the copy of Linus's tip mtd tree has is behind the current Linus's tip, after you fetch from Linus's tree to obtain its tip, if you allowed the fetch from mtd tree to update the remote tracking ref that you use to keep track of where Linus is, it would _rewind_ it, so I think it is natural to warn/prevent that mistake.

I think David's use of linus ref is bogus. What is he really trying to "track"? If he is trying to track where the tip of Linus's tree is, he should not let fetch from mtd to muck with that remote tracking ref that he uses to track Linus's tree.

On the other hand, I think it is perfectly reasonable thing to want to track where the tip of Linus's tree is "from mtd tree's point of view". Then diff between "mtd's idea of Linus's tip" and "mtd's tip" would represent what mtd people did, regardless of what Linus did in his tree, before mtd people had a chance to sync again with Linus.

Previous: Alex RiesenNext: David Woodhouse
Message 5 of 13 in “'upstream' branches.”
  1. David WoodhouseMay 5, 2007
  2. Alex RiesenMay 5, 2007
  3. David WoodhouseMay 5, 2007
  4. Alex RiesenMay 5, 2007
  5. Junio C HamanoMay 6, 2007
  6. David WoodhouseMay 6, 2007
  7. Junio C HamanoMay 6, 2007
  8. David WoodhouseMay 6, 2007
  9. Junio C HamanoMay 7, 2007
  10. David WoodhouseMay 7, 2007
  11. Alex RiesenMay 6, 2007
  12. Junio C HamanoMay 7, 2007
  13. Alex RiesenMay 7, 2007

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.