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

Re: [PATCH/RFC] git-fetch: Only fetch in fetch

From
SBSanti Béjar <sbejar@gmail.com>
Date
Jan 25, 2007, 00:52 UTC
Message-ID
<8aa486160701241652x375f0d0eoba1cdf3d14550034@mail.gmail.com>
In-Reply-To
<87veiwszpd.fsf@gmail.com>
On 1/25/07, Santi Béjar <sbejar@gmail.com> wrote:
>    I've tried to separate the fetch and merge logic. At the same time it
>    has removed 40 lines of code to the git-*.sh.
Just some words for the basic idea.

git-fetch: fetches the branches from the remote and save this information in .git/FETCH_HEAD. In .git/FETCH_REMOTE it save additional information, as the remote nick, the remote url, the refspec used and the default remote.

git-pull: uses this information to select the branches to merge and save them in .git/FETCH_MERGE.

See you.
Santi
Previous: Santi BéjarNext: Junio C Hamano
Message 2 of 4 in “git-fetch: Only fetch in fetch”
  1. git-fetch: Only fetch in fetchSanti Béjar, Jan 25, 2007
  2. Santi BéjarJan 25, 2007
  3. Junio C HamanoJan 25, 2007
  4. Santi BéjarJan 25, 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.