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

Re: remote branches

From
CJChristian Jaeger <chrjae@gmail.com>
Date
Feb 16, 2011, 18:00 UTC
Message-ID
<AANLkTi=FYvgY-N2krTh3pdocJRXXVA5jqtBKgXj6OVEw@mail.gmail.com>
In-Reply-To
<7vmxlzuouj.fsf@alter.siamese.dyndns.org>
2011/2/14 Junio C Hamano <gitster@pobox.com>:
Show 8 quoted lines
> The description in config.txt for --tags also cites another purpose,
> namely, to fetch tags otherwise totally unrelated to the branches you are
> following, but in reality there is no sensible use case to require such a
> feature.  Yes, you may have many unrelated lines of development with
> separate set of tags on them, but then --tags to fetch _all_ tags from
> all of these unrelated lines of development is a too coarse-grained tool
> to be useful.
>

FWIW, here's my use case: I'm doing development on two separate computers, and I'm synchronizing my work between those by fetching from each other computer directly (not pushing through a common repo), i.e. "git remote add other b:/home/me/foo/.git" in ~/foo/.git on computer a and "git remote add other a:/home/me/foo/.git" on computer b. Now I often drop partial work, rebase it etc., and make tags before the dropping, and sometimes I want to revisit those tagged (but not otherwise reachable) commits, and for that I want them to be available on both computers. I too searched the config docs, tried "tagopts = --tags" and then wondered why it wouldn't sync my branches anymore, then moved to "fetch = +refs/tags/*:refs/tags/*".

Christian.
Previous: Junio C Hamano
Message 8 of 8 in “remote branches”
  1. Matthieu ImbertFeb 13, 2011
  2. Ævar Arnfjörð BjarmasonFeb 13, 2011
  3. Matthieu ImbertFeb 13, 2011
  4. Andreas SchwabFeb 13, 2011
  5. Matthieu ImbertFeb 13, 2011
  6. Björn SteinbrinkFeb 13, 2011
  7. Junio C HamanoFeb 14, 2011
  8. Christian JaegerFeb 16, 2011

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.