git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 28, 2007, 07:19 UTC
Message-ID
<7vodcbe17f.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7vve6je349.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> It appears that the explicit case also needs documentation.
But with two "oops-correction"s.
Show 9 quoted lines
> 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/;
Show 5 quoted lines
>  * 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 /;
Previous: Junio C HamanoNext: Daniel Barkalow
Message 7 of 9 in “git-pull: don't complain about branch merge config if only fetching tags”
  1. git-pull: don't complain about branch merge config if only fetching tagsGerrit Pape, Dec 21, 2007
  2. Junio C HamanoDec 21, 2007
  3. Gerrit PapeDec 27, 2007
  4. Junio C HamanoDec 27, 2007
  5. git-pull: warn if only fetching tags with the -t switchGerrit Pape, Dec 27, 2007
  6. Junio C HamanoDec 28, 2007
  7. Junio C HamanoDec 28, 2007
  8. Daniel BarkalowDec 28, 2007
  9. Junio C HamanoDec 28, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.