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

Re: Pulled files with "new file" status

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Jul 20, 2009, 07:40 UTC
Message-ID
<4A641F53.9010901@viscovery.net>
In-Reply-To
<1e5bcefd0907192245j19aac1aar804a0e3bd637b46b@mail.gmail.com>
Marcelo de Moraes Serpa schrieb:
Show 5 quoted lines
> I git pulled again and get the updates
> from a friend, but the intriguing thing is that, the files that he
> added appeared as "new file" for me too. Why's that? I haven't been
> the one who added the file, he added it, why git would pull objects
> and tell me they are new ?
Perhaps because they *are* new for you?
  ------Y--M    <-- you
          /
   ------F      <-- your friend

If F added files, then you pull F, which creates the merge commit M, then the files are also new for *you*.

I assume you were looking at the diff summary that 'git pull' reported. This diff is the difference from Y to M, and in that diff, the files *are* new because they are now in M, but not in Y.

-- Hannes
Previous: Marcelo de Moraes Serpa
Message 2 of 2 in “Pulled files with "new file" status”
  1. Marcelo de Moraes SerpaJul 20, 2009
  2. Johannes SixtJul 20, 2009

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.