Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: [PATCH] Clarify that '--tags' fetches tags only

From: Michael Witten <hidden>
Date: 2016-06-15 22:52:05

Possibly related (same subject, not in this thread)

On Thu, Sep 22, 2011 at 00:49, Junio C Hamano [off-list ref] wrote:
--tags is merely a short-hand for "refs/tags/*:refs/tags/*")
explicitly from the command line
[Disclaimer: I don't know the code or the semantics]

Why not just use that explanation?

  This option is merely a short-hand for writing
  the refspec `refs/tags/*:refs/tags/*'; consequently,
  using this option overrides any default refspec that
  would be used if no refspec were provided on the
  command line. That is,

    git fetch --tags origin frotz

  is equivalent to:

    git fetch origin frotz 'refs/tags/*:refs/tags/*'

In fact, if the command line parsing performed by `git fetch'
is reasonably intelligent, then it might be worthwhile
to relocate `--tags' in the example:

  That is,

    git fetch origin frotz --tags

  is equivalent to:

    git fetch origin frotz 'refs/tags/*:refs/tags/*'
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help