git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Truncating and cleaning a imported git repositary to make it more usable
@ 2008-03-28 12:35 Alex Bennee
  2008-03-28 12:50 ` Avery Pennarun
  2008-03-29 17:51 ` Michael Haggerty
  0 siblings, 2 replies; 14+ messages in thread
From: Alex Bennee @ 2008-03-28 12:35 UTC (permalink / raw)
  To: git

Hi,

I've succeeded in porting our whole CVS repository into git (with plenty
of swap, cvsps is very memory hungry). Now we have a reference
historical repository I need to think about creating one we actually use
for day to day use (the .git is currently in the order of 650Mb which is
a little heavy for pushing around DSL links willy nilly).

What I need to achieve is fairly simple.

1. Find the common ancestor point for all the product branches I want to
keep in the repo.

Can anyone point me to the magic invocation that would allow this?
git-merge-base can find the common point for two commits, do I just have
to iteratively use that?

I'm currently working over a terminal link so it would be dead handy if
there was a visual way of showing what gitk --all does on the command
line.

2. Create a new repo, starting at the common ancestor point

  2(a). I'd need to remove the orphaned old CVS modules which are still
around but not referenced any more.

3. Create the product branches and import ANCESTOR..BRANCH_HEAD into
them

I'm not sure if I could pull directly into the new repo here. I could do
it by doing a:

  old_repo: git-format-patch ANCESTOR..BRANCH_HEAD
  new_repo: git-am ../old_repo/0*

But I'm open to newer cleaner ways of dealing with this.

Has anyone done this before? Are there cleaner ways of dealing with
this?

--
Alex, homepage: http://www.bennee.com/~alex/
When one knows women one pities men, but when one studies men, one
excuses women. -- Horne Tooke

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

end of thread, other threads:[~2008-03-31  6:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 12:35 Truncating and cleaning a imported git repositary to make it more usable Alex Bennee
2008-03-28 12:50 ` Avery Pennarun
2008-03-28 13:08   ` Alex Bennee
2008-03-28 15:52   ` Alex Bennee
2008-03-28 16:03     ` Alex Bennee
2008-03-28 16:43       ` Johannes Sixt
2008-03-28 18:07         ` [PATCH] Documentation: Another example for git-filter-branch Alex Bennee
2008-03-28 20:44         ` Truncating and cleaning a imported git repositary to make it more usable Mike Hommey
2008-03-29 13:47         ` Alex Bennee
2008-03-29 14:30           ` Jakub Narebski
2008-03-31  6:17           ` Johannes Sixt
2008-03-28 18:08       ` Jeff King
2008-03-28 18:19         ` Jeff King
2008-03-29 17:51 ` Michael Haggerty

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