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

Re: New way of tracking remote branches -- question

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Jan 9, 2007, 08:57 UTC
Message-ID
<46a038f90701090057w31d46530x4f70a76287bbef33@mail.gmail.com>
In-Reply-To
<7vejq9c9tf.fsf@assigned-by-dhcp.cox.net>
On 1/6/07, Junio C Hamano <junkio@cox.net> wrote:
Show 7 quoted lines
> You are talking about the separate remote layout "git clone"
> creates, and talking about the fact that there is nothing in
> refs/heads/ except master while refs/remotes/origin/ mirrors
> what the remote side has faithfully, aren't you?
>
> If that is the case, I can explain.  It is a good topic to talk
> about.

It's confusing me too ;-) though I think I'm getting to understand it. Still more comfortable with the cogito style, personally. The only thing I see as a clear improvement in git "remotes" is that I can fetch a bundle of heads for review. And that it can track heads that rewind. All the magic that happens if you have multiple pull lines is a bit scary, the kind of thing that should be disallowed or use a different syntax.

One aspect that I am getting used to, but I still consider slightly bogus is that as we have added a layer of indirection, what used to point to a specific remote branch now points to a bundle or remotes heads.

It is quite disconcerting to say git-pull origin, and see that pu is being pulled in. And fortunately I'm tracking repos that don't have an 'origin' head. Otherwise I'd get origin/origin. :-(

[reading on now...]
martin
Previous: Luben Tuikov
Message 13 of 13 in “New way of tracking remote branches -- question”
  1. Luben TuikovJan 5, 2007
  2. Junio C HamanoJan 5, 2007
  3. Junio C HamanoJan 5, 2007
  4. Luben TuikovJan 6, 2007
  5. Luben TuikovJan 6, 2007
  6. Junio C HamanoJan 5, 2007
  7. Junio C HamanoJan 6, 2007
  8. Steven GrimmJan 6, 2007
  9. Theodore TsoJan 6, 2007
  10. Luben TuikovJan 9, 2007
  11. Junio C HamanoJan 9, 2007
  12. Luben TuikovJan 9, 2007
  13. Martin LanghoffJan 9, 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.