Re: grafts+repack+prune = history at danger
- From
- Mark Wooding <mdw@distorted.org.uk>
- Date
- Jan 26, 2007, 09:15 UTC
- Message-ID
- <slrnerjhlu.7v0.mdw@metalzone.distorted.org.uk>
- In-Reply-To
- <7vireu7lj0.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> grafts are local matter for archaeologist's convenience to glue > two independent histories together, and not much more.
I've found them useful for doing imports from CVS. You run git-cvsimport, and then manually find the places where merges happened and record them as grafts. gitk then correctly displays the history, which is nice.
What you then do is run cg-admin-rewritehist, which magically transforms the history into one with the grafts etched in. All that remains is to translate the refs, which you can do with a sed script you got cg-admin-rewritehist to write for you.
-- [mdw]