{"thread":{"id":"6830","subject":"[PATCH] remotes.not-origin.tagopt","startedAt":"2007-02-15T09:46:27Z","lastAt":"2007-02-15T10:46:25Z","messageCount":2,"participants":["Junio C Hamano","Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"34685","messageId":"7vfy97g3d8.fsf@assigned-by-dhcp.cox.net","threadId":"6830","inReplyTo":null,"subject":"[PATCH] remotes.not-origin.tagopt","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-02-15T09:46:27Z","receivedAt":"2007-02-15T09:46:27Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"With a configuration entry like this:\n\n\t[remote \"alt-git\"]\n        \turl = git://repo.or.cz/alt.git/git/\n                fetch = +refs/heads/*:refs/remotes/alt-git/*\n                tagopt = --no-tags\n\nyou do not have to say \"git pull --no-tags alt-git\".  Just\nsaying \"git pull alt-git\" would suffice.\n\nObviously, if you want to get the tag from such an alternate\nremote in a separate namespace, you could also do something like:\n\n\t[remote \"alt-git\"]\n        \turl = git://repo.or.cz/alt.git/git/\n                fetch = +refs/heads/*:refs/remotes/alt-git/*\n                fetch = +refs/tags/*:refs/remote-tags/alt-git/*\n                tagopt = --no-tags\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n git-fetch.sh |    9 +++++++++\n 1 files changed, 9 insertions(+), 0 deletions(-)\n\ndiff --git a/git-fetch.sh b/git-fetch.sh\nindex ca984e7..d230995 100755\n--- a/git-fetch.sh\n+++ b/git-fetch.sh\n@@ -243,6 +243,15 @@ then\n \torig_head=$(git-rev-parse --verify HEAD 2>/dev/null)\n fi\n \n+# Allow --notags from remote.$1.tagopt\n+case \"$tags$no_tags\" in\n+'')\n+\tcase \"$(git-config --get \"remote.$1.tagopt\")\" in\n+\t--no-tags)\n+\t\tno_tags=t ;;\n+\tesac\n+esac\n+\n # If --tags (and later --heads or --all) is specified, then we are\n # not talking about defaults stored in Pull: line of remotes or\n # branches file, and just fetch those and refspecs explicitly given.\n"},{"id":"34694","messageId":"Pine.LNX.4.63.0702151055591.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6830","inReplyTo":"7vfy97g3d8.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH] remotes.not-origin.tagopt","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-15T10:46:25Z","receivedAt":"2007-02-15T10:46:25Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 15 Feb 2007, Junio C Hamano wrote:\n\n> With a configuration entry like this:\n> \n> \t[remote \"alt-git\"]\n>         \turl = git://repo.or.cz/alt.git/git/\n>                 fetch = +refs/heads/*:refs/remotes/alt-git/*\n>                 tagopt = --no-tags\n\nHow about going the full nine yards, and call it \"fetchopt\"? Then we would \nnot check for the tag options, but instead parse $fetchopt _after_ \"$@\" in \ngit-fetch.\n\nCiao,\nDscho\n"}]}