* Fetch and -t
@ 2013-02-12 0:41 Olsen, Alan R
2013-02-12 2:24 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Olsen, Alan R @ 2013-02-12 0:41 UTC (permalink / raw)
To: git
I have found that if I add a remote and do a "git fetch -t -f remote_name" that it *only* pulls tags.
Reading the man page it seems like it should pull all the remotes and all the tags and the commits only reachable by tags.
Am I misreading this or it supposed to work this way. I don't mind doing two fetches to get everything, but the documentation needs to be a little clearer.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fetch and -t
2013-02-12 0:41 Fetch and -t Olsen, Alan R
@ 2013-02-12 2:24 ` Junio C Hamano
2013-02-12 18:28 ` Olsen, Alan R
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2013-02-12 2:24 UTC (permalink / raw)
To: Olsen, Alan R; +Cc: git
"Olsen, Alan R" <alan.r.olsen@intel.com> writes:
> I have found that if I add a remote and do a "git fetch -t -f
> remote_name" that it *only* pulls tags.
>
> Reading the man page it seems like it should pull all the remotes
> and all the tags and the commits only reachable by tags.
This is what appears in the documentation we ship these days.
-t::
--tags::
This is a short-hand for giving "refs/tags/*:refs/tags/*"
refspec from the command line, to ask all tags to be fetched
and stored locally. Because this acts as an explicit
refspec, the default refspecs (configured with the
remote.$name.fetch variable) are overridden and not used.
http://git-htmldocs.googlecode.com/git/git-fetch.html
Previous discussion:
http://thread.gmane.org/gmane.comp.version-control.git/180636
A more recent one:
http://thread.gmane.org/gmane.comp.version-control.git/211439/focus=211464
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Fetch and -t
2013-02-12 2:24 ` Junio C Hamano
@ 2013-02-12 18:28 ` Olsen, Alan R
0 siblings, 0 replies; 3+ messages in thread
From: Olsen, Alan R @ 2013-02-12 18:28 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
[Sorry for the top-posting. I *hate* Outlook.]
I will need to check why my system is showing old man pages. I am running something compiled from the git tree on kernel.org.
Thanks!
-----Original Message-----
From: Junio C Hamano [mailto:gitster@pobox.com]
Sent: Monday, February 11, 2013 6:25 PM
To: Olsen, Alan R
Cc: git@vger.kernel.org
Subject: Re: Fetch and -t
"Olsen, Alan R" <alan.r.olsen@intel.com> writes:
> I have found that if I add a remote and do a "git fetch -t -f
> remote_name" that it *only* pulls tags.
>
> Reading the man page it seems like it should pull all the remotes and
> all the tags and the commits only reachable by tags.
This is what appears in the documentation we ship these days.
-t::
--tags::
This is a short-hand for giving "refs/tags/*:refs/tags/*"
refspec from the command line, to ask all tags to be fetched
and stored locally. Because this acts as an explicit
refspec, the default refspecs (configured with the
remote.$name.fetch variable) are overridden and not used.
http://git-htmldocs.googlecode.com/git/git-fetch.html
Previous discussion:
http://thread.gmane.org/gmane.comp.version-control.git/180636
A more recent one:
http://thread.gmane.org/gmane.comp.version-control.git/211439/focus=211464
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-12 18:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-12 0:41 Fetch and -t Olsen, Alan R
2013-02-12 2:24 ` Junio C Hamano
2013-02-12 18:28 ` Olsen, Alan R
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.