git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Questions about the new
@ 2009-10-12 10:23 Sergio
  2009-10-12 10:47 ` David Kågedal
  2009-10-12 12:19 ` Johannes Sixt
  0 siblings, 2 replies; 9+ messages in thread
From: Sergio @ 2009-10-12 10:23 UTC (permalink / raw)
  To: git




Hi,

I read from the release notes of git 1.6.5 about the new "replace" mechanism.
It is presented as "a replacement of the "grafts" mechanism, with the added
advantage that it can be transferred across repositories."

Since there is still little information about it, I would like to ask the
following:

1) Grafts and replace entries seem to operate on different aspects of the
history graph. Grafts operate on arcs and replace on nodes. 
As such, replace entries seem less general to me. 
Apparently, to simulate a graft with replace entries, you need to introduce
extra commit objects. For instance, if object B has no parents, to pretend that
it derives from some A, one needs to create an object B' equivalent to B but
for the parents and then replace B by B', is this right? Conversely, I guess
you can always simulate a replace entry with the graft mechanism, without the
need to add any extra commit object. Am I overlooking something? 

2) Is it currently possible to use a replace entry to replace a commit object
with nothing? Namely if B has A as its sole parent, is it possible to have a
replace entry such as A-sha1 becomes null, to pretend that B is a hierarchy
root?  

3) If I remember correctly, there was a reason why grafts were not considered
suitable for transferring across repos. Can someone remind me about it? How
does the replace mechanism address this issue?

Thanks,

Sergio

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-10-13 21:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 10:23 Questions about the new Sergio
2009-10-12 10:47 ` David Kågedal
2009-10-12 12:19 ` Johannes Sixt
2009-10-12 17:04   ` Sergio Callegari
2009-10-12 21:06     ` Junio C Hamano
2009-10-13  7:49       ` Sergio Callegari
2009-10-12 21:54     ` Christian Couder
2009-10-12 19:03   ` Dmitry Potapov
2009-10-13 21:33   ` Questions about the new refs/replace mechanism Jakub Narebski

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).