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

Re: fetch <repo> <branch>:<branch> fetches tags?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 29, 2008, 08:54 UTC
Message-ID
<7vabmpovu5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<loom.20080129T055937-532@post.gmane.org>
Brandon Casey <drafnel@gmail.com> writes:
Show 8 quoted lines
>> Having said that, I do not particularly think the new behaviour
>> is bad per-se.  If you are storing what you fetched locally in
>> tracking branches, you are interested in their work enough to
>> want to auto-follow their tags.
>
> How is "tracking" defined? Is this a term that implies some configuration
> to link a local branch to a remote branch? Or is any local branch created
> from a remote branch considered "tracking"?

I probably should have said "Instead of just letting fetch temporarily store the result in FETCH_HEAD and using it from there, you saved it away; that's a good indication of you care about it deeply enough".

It's really about what's convenient. I was somewhat upset that the behaviour change was not I was very aware of (perhaps I said it was a good idea and I then forgot), I didn't think the earlier behaviour was broken, but if I have to choose, I think the new behaviour is probably slightly nicer than the old one.

Previous: Brandon CaseyNext: Brandon Casey
Message 8 of 9 in “fetch <repo> <branch>:<branch> fetches tags?”
  1. Brandon CaseyJan 29, 2008
  2. Johannes SchindelinJan 29, 2008
  3. Brandon CaseyJan 29, 2008
  4. Junio C HamanoJan 29, 2008
  5. Shawn O. PearceJan 29, 2008
  6. Junio C HamanoJan 29, 2008
  7. Brandon CaseyJan 29, 2008
  8. Junio C HamanoJan 29, 2008
  9. Brandon CaseyJan 29, 2008

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.