Re: Do I misunderstand cg-merge --squash option
Dear diary, on Thu, Nov 10, 2005 at 09:36:06PM CET, I got a letter where Alan Chandler <alan@chandlerfamily.org.uk> said that...
Show 21 quoted lines
> On Thursday 10 Nov 2005 19:29, Petr Baudis wrote:
>
> >
> > Right now, what about trying to manually select the merge base?
> >
> > public$ cg-merge -b v1.0 master
>
> Actually, that does merge very nicely. However, I don't think its what I
> want. From gitk I get both routes back to my initial commit, both the fast
> track one and the slow train via all stations en-route.
>
> I have had more success with grafting (which you kindly informed me about
> yesterday)
>
> something like
>
> echo `cg-object-id v1.0` `cg-object-id initial_commit` >.git/info/grafts
>
> lf I make a branch out of the parent of v1.0 before doing this, I end up with
> there being a side branch of the old history and my master branch headed back
> through a quick route to the initial_commit.
Huh. But you still have the history cluttered and both routes to your initial commit, don't you? I'm now confused - I fear I don't know what you want anymore. But well, whatever is working out for you... ;-)
Show 9 quoted lines
> Something strange (well actually not that unexpected, the more I think about
> it) has happened though.
>
> I was trying to see if cg-clone would effectively me make a new repository
> without the grafts in it (ie with real commit object with a parent as
> specified via the graft) but it doesn't - it just looses the graft and
> rebrings all the old history back in
>
> Is that a bug?
So far grafts were considered a private thing to enable some cool things like tying ancient history to your current history tree, etc. But if you want to do some persistent changes in the DAG, you are really best off just rebuilding the whole history.
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.