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

Re: [PATCH 3/3] fetch --all/--multiple: keep all the fetched branch information

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Feb 24, 2010, 19:07 UTC
Message-ID
<87y6iizc4j.fsf@mithlond.arda>
In-Reply-To
<7vpr3uqwya.fsf_-_@alter.siamese.dyndns.org>
* 2010-02-24 11:02 (-0800), Junio C. Hamano wrote:
Show 13 quoted lines
> Since "git fetch" learned "--all" and "--multiple" options, it has become
> tempting for users to say "git pull --all".  Even though it may fetch from
> remotes that do not need to be fetched from for merging with the current
> branch, it is handy.
>
> "git fetch" however clears the list of fetched branches every time it
> contacts a different remote.  Unless the current branch is configured to
> merge with a branch from a remote that happens to be the last in the list
> of remotes that are contacted, "git pull" that fetches from multiple
> remotes will not be able to find the branch it should be merging with.
>
> Make "fetch" clear FETCH_HEAD (unless --append is given) and then append
> the list of branches fetched to it (even when --apend is not given).  That
                                                ^^^^^^^
Not very important but there's a typo: "apend".
Show 6 quoted lines
> way, "pull" will be able to find the data for the branch being merged in
> FETCH_HEAD no matter where the remote appears in the list of remotes to be
> contacted by "git fetch".
>
> Reported-by: Michael Lukashov
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previous: Junio C HamanoNext: Michael Lukashov
Message 4 of 7 in “t5521: fix and modernize”
  1. 1/2 t5521: fix and modernizeJunio C Hamano, Feb 24, 2010
  2. 2/2 builtin-fetch --all/--multi: propagate options correctlyJunio C Hamano, Feb 24, 2010
  3. 3/3 fetch --all/--multiple: keep all the fetched branch informationJunio C Hamano, Feb 24, 2010
  4. Teemu LikonenFeb 24, 2010
  5. Michael LukashovFeb 24, 2010
  6. Junio C HamanoFeb 24, 2010
  7. Michael LukashovFeb 24, 2010

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.