home | list info | list archive | date index | thread index

[OCLUG-Tech] "git fetch" versus "git fetch --tags"?

  once again, into the pedantry of a git command. for an upcoming
course, i'm writing a tutorial on how to start working with a remote,
and i'm using the example of adding linux-next as a remote to the
stock kernel, as explained here:

  https://www.kernel.org/doc/man-pages/linux-next.html

but i was puzzled with the following snippet of directions:

   Fetch linux-next plus tags

      $ git fetch linux-next
      ...
      $ git fetch --tags linux-next
      ...

is it really necessary to run two separate commands, to:

 * first fetch the content
 * then fetch the tags?

i would have thought that running that second command would be
sufficient, since the git-fetch man page reads thusly:

 -t, --tags
   Fetch all tags from the remote (i.e., fetch remote tags refs/tags/*
   into local tags with the same name), in addition to whatever else
   would otherwise be fetched.

note, "in addition to whatever else would otherwise be fetched." so
isn't that suggesting that that command would do the normal fetch of
content, *and* get the tags as well? or am i misreading something?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================