{"thread":{"id":"32882","subject":"Fetch and -t","startedAt":"2013-02-12T00:41:49Z","lastAt":"2013-02-12T18:28:39Z","messageCount":3,"participants":["Olsen, Alan R","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"209322","messageId":"4B2793BF110AAB47AB0EE7B9089703854FEE40B6@fmsmsx110.amr.corp.intel.com","threadId":"32882","inReplyTo":null,"subject":"Fetch and -t","fromName":"Olsen, Alan R","fromEmail":"alan.r.olsen@intel.com","sentAt":"2013-02-12T00:41:49Z","receivedAt":"2013-02-12T00:41:49Z","isPatch":false,"sender":{"key":"alan.r.olsen@intel.com","avatar":null},"body":"I have found that if I add a remote and do a \"git fetch -t -f remote_name\" that it *only* pulls tags.\n\nReading the man page it seems like it should pull all the remotes and all the tags and the commits only reachable by tags.\n\nAm 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.\n"},{"id":"209326","messageId":"7v621yjmla.fsf@alter.siamese.dyndns.org","threadId":"32882","inReplyTo":"4B2793BF110AAB47AB0EE7B9089703854FEE40B6@fmsmsx110.amr.corp.intel.com","subject":"Re: Fetch and -t","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-02-12T02:24:33Z","receivedAt":"2013-02-12T02:24:33Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Olsen, Alan R\" <alan.r.olsen@intel.com> writes:\n\n> I have found that if I add a remote and do a \"git fetch -t -f\n> remote_name\" that it *only* pulls tags.\n>\n> Reading the man page it seems like it should pull all the remotes\n> and all the tags and the commits only reachable by tags.\n\nThis is what appears in the documentation we ship these days.\n\n    -t::\n    --tags::\n            This is a short-hand for giving \"refs/tags/*:refs/tags/*\"\n            refspec from the command line, to ask all tags to be fetched\n            and stored locally.  Because this acts as an explicit\n            refspec, the default refspecs (configured with the\n            remote.$name.fetch variable) are overridden and not used.\n\nhttp://git-htmldocs.googlecode.com/git/git-fetch.html\n\nPrevious discussion:\n\n    http://thread.gmane.org/gmane.comp.version-control.git/180636\n\nA more recent one:\n\n    http://thread.gmane.org/gmane.comp.version-control.git/211439/focus=211464\n"},{"id":"209387","messageId":"4B2793BF110AAB47AB0EE7B9089703854FEE45E9@fmsmsx110.amr.corp.intel.com","threadId":"32882","inReplyTo":"7v621yjmla.fsf@alter.siamese.dyndns.org","subject":"RE: Fetch and -t","fromName":"Olsen, Alan R","fromEmail":"alan.r.olsen@intel.com","sentAt":"2013-02-12T18:28:39Z","receivedAt":"2013-02-12T18:28:39Z","isPatch":false,"sender":{"key":"alan.r.olsen@intel.com","avatar":null},"body":"[Sorry for the top-posting. I *hate* Outlook.]\n\nI will need to check why my system is showing old man pages. I am running something compiled from the git tree on kernel.org.\n\nThanks!\n\n-----Original Message-----\nFrom: Junio C Hamano [mailto:gitster@pobox.com] \nSent: Monday, February 11, 2013 6:25 PM\nTo: Olsen, Alan R\nCc: git@vger.kernel.org\nSubject: Re: Fetch and -t\n\n\"Olsen, Alan R\" <alan.r.olsen@intel.com> writes:\n\n> I have found that if I add a remote and do a \"git fetch -t -f \n> remote_name\" that it *only* pulls tags.\n>\n> Reading the man page it seems like it should pull all the remotes and \n> all the tags and the commits only reachable by tags.\n\nThis is what appears in the documentation we ship these days.\n\n    -t::\n    --tags::\n            This is a short-hand for giving \"refs/tags/*:refs/tags/*\"\n            refspec from the command line, to ask all tags to be fetched\n            and stored locally.  Because this acts as an explicit\n            refspec, the default refspecs (configured with the\n            remote.$name.fetch variable) are overridden and not used.\n\nhttp://git-htmldocs.googlecode.com/git/git-fetch.html\n\nPrevious discussion:\n\n    http://thread.gmane.org/gmane.comp.version-control.git/180636\n\nA more recent one:\n\n    http://thread.gmane.org/gmane.comp.version-control.git/211439/focus=211464\n"}]}