* Pulled files with "new file" status
@ 2009-07-20 5:45 Marcelo de Moraes Serpa
2009-07-20 7:40 ` Johannes Sixt
0 siblings, 1 reply; 2+ messages in thread
From: Marcelo de Moraes Serpa @ 2009-07-20 5:45 UTC (permalink / raw)
To: git
Hello,
I just went through an interesting situation and maybe someone could
enlighten-me. I pulled and got a conflict. I solved the conflict, git
added the file, and committed. 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 ?
Thanks in advance!
Marcelo.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Pulled files with "new file" status
2009-07-20 5:45 Pulled files with "new file" status Marcelo de Moraes Serpa
@ 2009-07-20 7:40 ` Johannes Sixt
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Sixt @ 2009-07-20 7:40 UTC (permalink / raw)
To: Marcelo de Moraes Serpa; +Cc: git
Marcelo de Moraes Serpa schrieb:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-20 7:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-20 5:45 Pulled files with "new file" status Marcelo de Moraes Serpa
2009-07-20 7:40 ` Johannes Sixt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).