Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] git-pull: warn if only fetching tags with the -t switch

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:01

Junio C Hamano [off-list ref] writes:
It appears that the explicit case also needs documentation.
But with two "oops-correction"s.
The refs fetched are:

 + Having --tags on the command line is the same as replacing
   remote.$remote.fetch with refs/tags/*:refs/tags/* in the
   configuration.

 + If refspecs are explicitly given from the command line, they
   will be the ones that are fetched, and remotes.$remote.fetch
   is consulted unless they come from the above --tags.
s/is consulted/is ignored/;
 * Otherwise, remotes.$remote.fetch (and its equivalent in
   .git/remotes/$remote) are the ones that are fetched.

 * In addition, if branch.$current_branch.merge is specified but
   is not covered by the above, it also is fetched.
s/if /if no explicit refspecs are given and /;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help