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

Re: git fetch: where are the downloaded objects stored?

From
PCPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Date
Mar 3, 2008, 15:40 UTC
Message-ID
<4d8e3fd30803030740i18ca8db1y681b4f10797f8c83@mail.gmail.com>
In-Reply-To
<vpq63w325px.fsf@bauges.imag.fr>
On Mon, Mar 3, 2008 at 4:21 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
Show 6 quoted lines
> "Paolo Ciarrocchi" <paolo.ciarrocchi@gmail.com> writes:
>
> > "A merge is always between the current HEAD and one or more remote
> > branch heads"
>
> I think this is just wrong. Would this be correct?

Sounds better than the original document, however I'm still having some problems in visualizing what happens when I type "git fetch" followed by "git merge".

Show 10 quoted lines
> diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt
> index 0c9ad7f..e46dea1 100644
> --- a/Documentation/git-merge.txt
> +++ b/Documentation/git-merge.txt
> @@ -68,7 +68,7 @@ HOW MERGE WORKS
>  ---------------
>
>  A merge is always between the current `HEAD` and one or more
> -remote branch heads, and the index file must exactly match the
> +branch heads (remote or local), and the index file must exactly match the

When I run the command git fetch the objects are downloaded from the remote branch and locally stored in the objects database. Both the working tree and index are not touched by this operation. Is this correct?

How can I look to what I just downloaded? Should I simply do a git diff?

Backing to the documentation, your proposal is:
 A merge is always between the current `HEAD` and one or more
 branch heads (remote or local), and the index file must exactly match the

In case of a git fetch + git merge the merge is between the current `HEAD` and the downloaded objects. Is correct to define it `branch heads`?

Maybe (read it: for sure) I'm a bit confused by the git terminology but I really feel that other newbies are not easily understanding this process.

Thanks.
ciao,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/
Previous: Matthieu MoyNext: Nicolas Pitre
Message 5 of 12 in “git fetch: where are the downloaded objects stored?”
  1. Paolo CiarrocchiMar 3, 2008
  2. Matthieu MoyMar 3, 2008
  3. Paolo CiarrocchiMar 3, 2008
  4. Matthieu MoyMar 3, 2008
  5. Paolo CiarrocchiMar 3, 2008
  6. Nicolas PitreMar 3, 2008
  7. Paolo CiarrocchiMar 3, 2008
  8. Sergei OrganovMar 3, 2008
  9. Nicolas PitreMar 3, 2008
  10. Nicolas PitreMar 3, 2008
  11. Paolo CiarrocchiMar 3, 2008
  12. Jakub NarebskiMar 3, 2008

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.