From: Petr Baudis <pasky@suse.cz>
To: Alan Chandler <alan@chandlerfamily.org.uk>
Cc: git@vger.kernel.org
Subject: Re: Do I misunderstand cg-merge --squash option
Date: Thu, 10 Nov 2005 22:16:37 +0100 [thread overview]
Message-ID: <20051110211637.GA30496@pasky.or.cz> (raw)
In-Reply-To: <200511102036.06484.alan@chandlerfamily.org.uk>
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...
> 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... ;-)
> 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.
prev parent reply other threads:[~2005-11-10 21:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 0:25 Do I misunderstand cg-merge --squash option Alan Chandler
2005-11-10 10:12 ` Petr Baudis
2005-11-10 19:15 ` Alan Chandler
2005-11-10 19:29 ` Petr Baudis
2005-11-10 20:36 ` Alan Chandler
2005-11-10 21:16 ` Petr Baudis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051110211637.GA30496@pasky.or.cz \
--to=pasky@suse.cz \
--cc=alan@chandlerfamily.org.uk \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).