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

Feature request: option to not fetch tags for 'git remote' branches

From
FPFrans Pop <elendil@planet.nl>
Date
Mar 24, 2010, 20:54 UTC
Message-ID
<201003242154.29245.elendil@planet.nl>

I'm sometimes asked to build a kernel or rebase patches against a certain development repository. No problem, happy to do that.

Except that some of those repos have huge numbers of tags that I'm not interested in and which only muddy the tags from the "origin" repo and my own.

I mostly want to remove the remote again ASAP and having to semi-manually remove the unwanted tags afterwards is a nuisance.

Example (on top of kernel mainline):
$ git remote add -t master iwlwifi \
	git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6.git
This results in the addition of 326 'master-<date>' tags, 70 'merge-<date>' 
tags and 6 'snapshot-<date>' tags.
Similar effects for example from Ingo's "tip" repository.

It would be great to be able to tell 'git remote' to skip tags and only fetch the requested branch. A --no-tags option maybe?

AFAIK this is currently not possible, although I'd happy to be proven wrong.

Cheers, FJP

Next: John Feuerstein
Message 1 of 7 in “Feature request: option to not fetch tags for 'git remote' branches”
  1. Frans PopMar 24, 2010
  2. John FeuersteinMar 24, 2010
  3. Björn SteinbrinkMar 24, 2010
  4. Frans PopMar 24, 2010
  5. Samuel TardieuMar 27, 2010
  6. Samuel TardieuMar 27, 2010
  7. Frans PopMar 30, 2010

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.