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

4 messages, 3 authors, 2016-06-15 · open the first message on its own page

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

From: Frans Pop <hidden>
Date: 2016-06-15 22:48:29

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

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

From: John Feuerstein <hidden>
Date: 2016-06-15 22:48:29

Hello Frans,
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.
have a look at -n, --no-tags provided by git-fetch, ie.

$ git remote add ... foo ...
$ git fetch -n foo


Regards,
John

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

From: Björn Steinbrink <hidden>
Date: 2016-06-15 22:48:29

On 2010.03.24 22:08:43 +0100, John Feuerstein wrote:
Hello Frans,
quoted
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.
have a look at -n, --no-tags provided by git-fetch, ie.

$ git remote add ... foo ...
$ git fetch -n foo
And you can set remote.<name>.tagopt to --no-tags to make that the
default.

Björn

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

From: Frans Pop <hidden>
Date: 2016-06-15 22:48:29

On Wednesday 24 March 2010, John Feuerstein wrote:
quoted
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.
have a look at -n, --no-tags provided by git-fetch, ie.

$ git remote add ... foo ...
$ git fetch -n foo
Thanks John. I'll need to test if that's persistent, or that I'll have
to remember to specify it with each fetch. I guess the option is also 
recognized by 'git remote update'?

Ahh. I've just found 'remote.<name>.tagopt' in 'man git-config'.
I still think it would be nice if that could be set with an option for
'git remote add'. That would make life so much simpler :-)

Cheers,
FJP
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help