All of lore.kernel.org
 help / color / mirror / Atom feed
* How to fetch all tags in the history of selected branch, but only those tags?
@ 2019-11-22  9:58 Szelp, A. Sz.
  2019-11-22 12:53 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Szelp, A. Sz. @ 2019-11-22  9:58 UTC (permalink / raw)
  To: git

Hi,

I found a discrepancy in the documentation around `git-fetch` where it
describes a default behaviour (and the described behaviour is what I'd
want) but that does not seem to be the actually implemented default
behaviour (on 2.21.0). Well, either that or I misunderstand the
documentation. Then it might be an indication that the documentation
can benefit from clarification.

I described my issue in a question on
[Stackoverflow](https://stackoverflow.com/questions/58953115/), but I
figured I'd get more informed answers here.

So, the documentation for `git-fetch` says:
> By default, any tag that points into the histories being fetched is also fetched; the effect is to fetch tags that point at branches that you are interested in.

However doing `git fetch origin master` I do *not* get any tags. Doing
`--tags` on the other hand fetches *all* of the tags, defying the
benefit spelled out in " the effect is to fetch tags that point at
branches that you are interested in".

What am I missing? Is this indeed a bug (either in implementation or
in documentation), or am I missing something obvious. Also, how can I
force the desired behaviour (fetch the tags in the history, but only
those).

Szabolcs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to fetch all tags in the history of selected branch, but only those tags?
  2019-11-22  9:58 How to fetch all tags in the history of selected branch, but only those tags? Szelp, A. Sz.
@ 2019-11-22 12:53 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2019-11-22 12:53 UTC (permalink / raw)
  To: Szelp, A. Sz.; +Cc: git

On Fri, Nov 22, 2019 at 10:58:07AM +0100, Szelp, A. Sz. wrote:

> However doing `git fetch origin master` I do *not* get any tags. Doing
> `--tags` on the other hand fetches *all* of the tags, defying the
> benefit spelled out in " the effect is to fetch tags that point at
> branches that you are interested in".
> 
> What am I missing? Is this indeed a bug (either in implementation or
> in documentation), or am I missing something obvious. Also, how can I
> force the desired behaviour (fetch the tags in the history, but only
> those).

This was discussed recently in:

  https://public-inbox.org/git/alpine.LSU.2.20.1910021431130.32588@cpza.bfz-tzou.qr/

-Peff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-22 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-22  9:58 How to fetch all tags in the history of selected branch, but only those tags? Szelp, A. Sz.
2019-11-22 12:53 ` Jeff King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.