git/t/t5515
Michael Haggerty c5a84e92a2 fetch --tags: fetch tags *in addition to* other stuff
Previously, fetch's "--tags" option was considered equivalent to
specifying the refspec "refs/tags/*:refs/tags/*" on the command line;
in particular, it caused the remote.<name>.refspec configuration to be
ignored.

But it is not very useful to fetch tags without also fetching other
references, whereas it *is* quite useful to be able to fetch tags *in
addition to* other references.  So change the semantics of this option
to do the latter.

If a user wants to fetch *only* tags, then it is still possible to
specifying an explicit refspec:

    git fetch <remote> 'refs/tags/*:refs/tags/*'

Please note that the documentation prior to 1.8.0.3 was ambiguous
about this aspect of "fetch --tags" behavior.  Commit

    f0cb2f137c 2012-12-14 fetch --tags: clarify documentation

made the documentation match the old behavior.  This commit changes
the documentation to match the new behavior.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-10-30 14:16:36 -07:00
..
fetch.br-branches-default fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-branches-default-merge write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-branches-default-merge_branches-default write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-branches-default-octopus write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-branches-default-octopus_branches-default write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-branches-default_branches-default fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-branches-one fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-branches-one-merge write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-branches-one-merge_branches-one write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-branches-one-octopus fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-branches-one-octopus_branches-one fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-branches-one_branches-one fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-config-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-config-explicit-merge write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-explicit-merge_config-explicit write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-explicit-octopus write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-explicit-octopus_config-explicit write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-explicit_config-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-config-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-config-glob-merge write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-glob-merge_config-glob write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-glob-octopus write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-glob-octopus_config-glob write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-config-glob_config-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-remote-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-remote-explicit-merge write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-explicit-merge_remote-explicit write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-explicit-octopus write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-explicit-octopus_remote-explicit write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-explicit_remote-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-remote-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-remote-glob-merge write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-glob-merge_remote-glob write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-glob-octopus write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-glob-octopus_remote-glob write first for-merge ref to FETCH_HEAD first 2012-01-03 16:13:14 -08:00
fetch.br-remote-glob_remote-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_--tags_.._.git fetch --tags: fetch tags *in addition to* other stuff 2013-10-30 14:16:36 -07:00
fetch.br-unconfig_.._.git t/t5515-fetch-merge-logic.sh: Add two more tests 2007-03-07 10:22:44 -08:00
fetch.br-unconfig_.._.git_one t/t5515-fetch-merge-logic.sh: Added tests for the merge login in git-fetch 2007-03-05 00:27:37 -08:00
fetch.br-unconfig_.._.git_one_tag_tag-one_tag_tag-three-file fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_.._.git_one_two t/t5515-fetch-merge-logic.sh: Added tests for the merge login in git-fetch 2007-03-05 00:27:37 -08:00
fetch.br-unconfig_.._.git_tag_tag-one-tree_tag_tag-three-file fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_.._.git_tag_tag-one_tag_tag-three fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_branches-default fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_branches-one fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_config-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_config-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_remote-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.br-unconfig_remote-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_--tags_.._.git fetch --tags: fetch tags *in addition to* other stuff 2013-10-30 14:16:36 -07:00
fetch.master_.._.git t/t5515-fetch-merge-logic.sh: Add two more tests 2007-03-07 10:22:44 -08:00
fetch.master_.._.git_one t/t5515-fetch-merge-logic.sh: Added tests for the merge login in git-fetch 2007-03-05 00:27:37 -08:00
fetch.master_.._.git_one_tag_tag-one_tag_tag-three-file fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_.._.git_one_two t/t5515-fetch-merge-logic.sh: Added tests for the merge login in git-fetch 2007-03-05 00:27:37 -08:00
fetch.master_.._.git_tag_tag-one-tree_tag_tag-three-file fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_.._.git_tag_tag-one_tag_tag-three fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_branches-default fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_branches-one fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_config-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_config-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_remote-explicit fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
fetch.master_remote-glob fetch: do not store peeled tag object names in FETCH_HEAD 2011-11-04 21:40:25 -07:00
refs.br-branches-default git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-default-merge git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-default-merge_branches-default git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-default-octopus git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-default-octopus_branches-default git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-default_branches-default git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-one-merge git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-one-merge_branches-one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-one-octopus git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-one-octopus_branches-one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-branches-one_branches-one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-explicit-merge git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-explicit-merge_config-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-explicit-octopus git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-explicit-octopus_config-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-explicit_config-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-glob-merge git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-glob-merge_config-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-glob-octopus git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-glob-octopus_config-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-config-glob_config-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-explicit-merge git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-explicit-merge_remote-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-explicit-octopus git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-explicit-octopus_remote-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-explicit_remote-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-glob-merge git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-glob-merge_remote-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-glob-octopus git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-glob-octopus_remote-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-remote-glob_remote-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_--tags_.._.git git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_.._.git git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_.._.git_one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_.._.git_one_tag_tag-one_tag_tag-three-file git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_.._.git_one_two git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_.._.git_tag_tag-one-tree_tag_tag-three-file git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_.._.git_tag_tag-one_tag_tag-three git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_branches-default git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_branches-one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_config-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_config-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_remote-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.br-unconfig_remote-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_--tags_.._.git git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_.._.git git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_.._.git_one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_.._.git_one_tag_tag-one_tag_tag-three-file git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_.._.git_one_two git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_.._.git_tag_tag-one-tree_tag_tag-three-file git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_.._.git_tag_tag-one_tag_tag-three git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_branches-default git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_branches-one git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_config-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_config-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_remote-explicit git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00
refs.master_remote-glob git-fetch test: test tracking fetch results, not just FETCH_HEAD 2008-03-26 01:29:54 -07:00