{"thread":{"id":"38676","subject":"git-remote add: --no-tags/--tags which one is the default option","startedAt":"2015-03-02T09:48:24Z","lastAt":"2015-03-03T22:09:18Z","messageCount":6,"participants":["Francis Moreau","Michael J Gruber","Kevin Daudt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"256833","messageId":"54F431E8.3050009@gmail.com","threadId":"38676","inReplyTo":null,"subject":"git-remote add: --no-tags/--tags which one is the default option","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2015-03-02T09:48:24Z","receivedAt":"2015-03-02T09:48:24Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hi,\n\ngit remote add has --no-tags/--tags option, but I can't find in the man\npage which one is the default.\n\nCould anybody tell me the default option ?\n\nThanks.\n"},{"id":"256836","messageId":"932c9cd452718ad5e88677fc90985ef7fafd5078.1425301543.git.git@drmicha.warpmail.net","threadId":"38676","inReplyTo":"54F431E8.3050009@gmail.com","subject":"[PATCH] git-remote.txt: describe behavior without --tags and --no-tags","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2015-03-02T13:08:09Z","receivedAt":"2015-03-02T13:08:09Z","isPatch":true,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>\n---\n Documentation/git-remote.txt | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)\n\ndiff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt\nindex a77607b..f3f6f0d 100644\n--- a/Documentation/git-remote.txt\n+++ b/Documentation/git-remote.txt\n@@ -56,7 +56,10 @@ With `--tags` option, `git fetch <name>` imports every tag from the\n remote repository.\n +\n With `--no-tags` option, `git fetch <name>` does not import tags from\n the remote repository.\n++\n+By default, only tags on fetched branches are imported\n+(see linkgit:git-fetch[1]).\n +\n With `-t <branch>` option, instead of the default glob\n refspec for the remote to track all branches under\n-- \n2.3.1.303.g5174db1\n"},{"id":"256838","messageId":"54F46758.4070207@gmail.com","threadId":"38676","inReplyTo":"932c9cd452718ad5e88677fc90985ef7fafd5078.1425301543.git.git@drmicha.warpmail.net","subject":"Re: [PATCH] git-remote.txt: describe behavior without --tags and --no-tags","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2015-03-02T13:36:24Z","receivedAt":"2015-03-02T13:36:24Z","isPatch":true,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hi,\n\nOn 03/02/2015 02:08 PM, Michael J Gruber wrote:\n> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>\n> ---\n>  Documentation/git-remote.txt | 5 ++++-\n>  1 file changed, 4 insertions(+), 1 deletion(-)\n> \n> diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt\n> index a77607b..f3f6f0d 100644\n> --- a/Documentation/git-remote.txt\n> +++ b/Documentation/git-remote.txt\n> @@ -56,7 +56,10 @@ With `--tags` option, `git fetch <name>` imports every tag from the\n>  remote repository.\n>  +\n>  With `--no-tags` option, `git fetch <name>` does not import tags from\n>  the remote repository.\n> ++\n> +By default, only tags on fetched branches are imported\n> +(see linkgit:git-fetch[1]).\n>  +\n\nSo the default is neither --no-tags nor --tags ?\n\nThanks.\n"},{"id":"256842","messageId":"54F47841.6060009@drmicha.warpmail.net","threadId":"38676","inReplyTo":"54F46758.4070207@gmail.com","subject":"Re: [PATCH] git-remote.txt: describe behavior without --tags and --no-tags","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2015-03-02T14:48:33Z","receivedAt":"2015-03-02T14:48:33Z","isPatch":true,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Francis Moreau venit, vidit, dixit 02.03.2015 14:36:\n> Hi,\n> \n> On 03/02/2015 02:08 PM, Michael J Gruber wrote:\n>> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>\n>> ---\n>>  Documentation/git-remote.txt | 5 ++++-\n>>  1 file changed, 4 insertions(+), 1 deletion(-)\n>>\n>> diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt\n>> index a77607b..f3f6f0d 100644\n>> --- a/Documentation/git-remote.txt\n>> +++ b/Documentation/git-remote.txt\n>> @@ -56,7 +56,10 @@ With `--tags` option, `git fetch <name>` imports every tag from the\n>>  remote repository.\n>>  +\n>>  With `--no-tags` option, `git fetch <name>` does not import tags from\n>>  the remote repository.\n>> ++\n>> +By default, only tags on fetched branches are imported\n>> +(see linkgit:git-fetch[1]).\n>>  +\n> \n> So the default is neither --no-tags nor --tags ?\n> \n> Thanks.\n> \n\nBy default, only tags on fetched branches are imported. That is: When\nthe fetch is done, all tags are imported that point to commits that are\nreachable from refs that you are fetching, in short: \"tags on fetched\nbranches\". That is in between \"none\" (--no-tags) and \"all\" (--tags).\n\nMichael\n"},{"id":"256844","messageId":"54F47A11.9090701@gmail.com","threadId":"38676","inReplyTo":"54F47841.6060009@drmicha.warpmail.net","subject":"Re: [PATCH] git-remote.txt: describe behavior without --tags and --no-tags","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2015-03-02T14:56:17Z","receivedAt":"2015-03-02T14:56:17Z","isPatch":true,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"On 03/02/2015 03:48 PM, Michael J Gruber wrote:\n> Francis Moreau venit, vidit, dixit 02.03.2015 14:36:\n>> Hi,\n>>\n>> On 03/02/2015 02:08 PM, Michael J Gruber wrote:\n>>> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>\n>>> ---\n>>>  Documentation/git-remote.txt | 5 ++++-\n>>>  1 file changed, 4 insertions(+), 1 deletion(-)\n>>>\n>>> diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt\n>>> index a77607b..f3f6f0d 100644\n>>> --- a/Documentation/git-remote.txt\n>>> +++ b/Documentation/git-remote.txt\n>>> @@ -56,7 +56,10 @@ With `--tags` option, `git fetch <name>` imports every tag from the\n>>>  remote repository.\n>>>  +\n>>>  With `--no-tags` option, `git fetch <name>` does not import tags from\n>>>  the remote repository.\n>>> ++\n>>> +By default, only tags on fetched branches are imported\n>>> +(see linkgit:git-fetch[1]).\n>>>  +\n>>\n>> So the default is neither --no-tags nor --tags ?\n>>\n>> Thanks.\n>>\n> \n> By default, only tags on fetched branches are imported. That is: When\n> the fetch is done, all tags are imported that point to commits that are\n> reachable from refs that you are fetching, in short: \"tags on fetched\n> branches\". That is in between \"none\" (--no-tags) and \"all\" (--tags).\n> \n\njust my 2 cents, I would find easier to read it like this:\n\n-----\nBy default, only tags on fetched branches are imported. This can be\nchanged by the --tags and --no-tags options.\n\nWith `--tags` option, `git fetch <name>` imports every tag from the\nremote repository (including not reachable tags from fetched refs).\n\nWith `--no-tags` option, `git fetch <name>` does not import tags from\nthe remote repository.\n-----\n\nThanks.\n"},{"id":"256938","messageId":"20150303220918.GB17528@vps892.directvps.nl","threadId":"38676","inReplyTo":"54F431E8.3050009@gmail.com","subject":"Re: git-remote add: --no-tags/--tags which one is the default option","fromName":"Kevin Daudt","fromEmail":"me@ikke.info","sentAt":"2015-03-03T22:09:18Z","receivedAt":"2015-03-03T22:09:18Z","isPatch":false,"sender":{"key":"me@ikke.info","avatar":"https://avatars.githubusercontent.com/u/135698?v=4"},"body":"On Mon, Mar 02, 2015 at 10:48:24AM +0100, Francis Moreau wrote:\n> Hi,\n> \n> git remote add has --no-tags/--tags option, but I can't find in the man\n> page which one is the default.\n> \n> Could anybody tell me the default option ?\n> \n\n\nNeither is default. This option has three states, set, unset and\ndefault:\n\n- unset (--no-tags) doesn't fetch any tags at all\n- default (no option passed) will fetch any tags that are reachable from the refs that are\n  being fetch\n- set (--tags) will fetch all tags, even if they aren't reachable.\n\nThese options can also be set with the remote.<name>.tagopt config\noption, which takes values [--tags|--no-tags].\n\nKevin\n"}]}