Skip to contentSkip to conversation

working with linux-next ... must tags be fetched separately?

DISCUSSION Robert P. J. Day 3 participants 4 messages Jun 28, 2015 – Jul 1, 2015

lore
Share & tools
lore
#0 lore raw

perusing the current instructions on how to work with linux-next
here:

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

and i'm puzzled by this part of the instructions:

Fetch linux-next plus tags

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

is it really necessary to run two separate fetch commands? from the man page for git-fetch, one reads:

-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.

so would it not be sufficient to run simply:

    $ git fetch --tags linux-next

or am i misreading something?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw

Hi,

git fetch --tags linux-next

Will only fetch the tags not changed files content/data.

To fetch file changes
git fetch linux-next

Is required.

Quoted 49 lines · Robert P. J. Day

perusing the current instructions on how to work with linux-next
here:

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

and i'm puzzled by this part of the instructions:

Fetch linux-next plus tags

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

is it really necessary to run two separate fetch commands? from the man page for git-fetch, one reads:

      -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.

so would it not be sufficient to run simply:

   $ git fetch --tags linux-next

or am i misreading something?

rday

Signature · 15 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario,
CANADA
                       http://crashcourse.ca

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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 4 lines
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150628/eb7bfec5/attachment.html 
#2 lore raw
Quoted 20 lines · Harsh Jain

Hi,

git fetch --tags linux-next

Will only fetch the tags not changed files content/data.

To fetch file changes
git fetch linux-next

Is required.

On 28 June 2015 14:59:15 GMT+05:30, "Robert P. J. Day" <[email protected]> wrote:

perusing the current instructions on how to work with linux-next
here:
https://www.kernel.org/doc/man-pages/linux-next.html
and i'm puzzled by this part of the instructions:
Fetch linux-next plus tags

Quoted 13 lines
    $ git fetch linux-next
    ...
    $ git fetch --tags linux-next
    ...
is it really necessary to run two separate fetch commands? from the
man page for git-fetch, one reads:
       -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.
so would it not be sufficient to run simply:
    $ git fetch --tags linux-next
or am i misreading something?
rday

that suggests that the man page is slightly misleading, given that
it clearly states that "--tags" will fetch tags, "in addition to whatever else would otherwise be fetched." or is there a different way to read that phrase?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#3 lore raw
Quoted 36 lines · Robert P. J. Day
Quoted 20 lines · Harsh Jain

Hi,

git fetch --tags linux-next

Will only fetch the tags not changed files content/data.

To fetch file changes
git fetch linux-next

Is required.

On 28 June 2015 14:59:15 GMT+05:30, "Robert P. J. Day" <[email protected]> wrote:

perusing the current instructions on how to work with linux-next
here:
https://www.kernel.org/doc/man-pages/linux-next.html
and i'm puzzled by this part of the instructions:
Fetch linux-next plus tags

Quoted 13 lines
    $ git fetch linux-next
    ...
    $ git fetch --tags linux-next
    ...
is it really necessary to run two separate fetch commands? from the
man page for git-fetch, one reads:
       -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.
so would it not be sufficient to run simply:
    $ git fetch --tags linux-next
or am i misreading something?
rday
Quoted 7 lines

that suggests that the man page is slightly misleading, given that
it clearly states that "--tags" will fetch tags, "in addition to whatever else would otherwise be fetched." or is there a different way to read that phrase?

rday

It seems to work as described in the manpage for me:

snits at cantor:~/dev/linux=>git fetch -t linus
remote: Counting objects: 888, done.
remote: Compressing objects: 100% (158/158), done.
remote: Total 888 (delta 798), reused 818 (delta 730) Receiving objects: 100% (888/888), 137.18 KiB | 0 bytes/s, done. Resolving deltas: 100% (798/798), completed with 368 local objects.

Quoted 1 line

From git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux

0890a26..6ac15ba master -> linus/master
snits at cantor:~/dev/linux=>git --version
git version 2.4.3.368.g7974889