* Splitting off old history to ancillary repo
@ 2008-08-28 2:40 Martin Langhoff
2008-08-28 16:57 ` Michael J Gruber
0 siblings, 1 reply; 2+ messages in thread
From: Martin Langhoff @ 2008-08-28 2:40 UTC (permalink / raw)
To: Git Mailing List
A project I've inherited has a codebase ~500KB in size. However, in
early history some large binary blobs were committed to the repo.
We've gotten rid of those, and they are not interesting to current
development. But an initial checkout still has to retrieve 60MiB, when
I'm sure the recent (and interesting) history fits in less than 1MB.
What is the state of grafts from a "keeping the repo mostly
transparently usable for newcomers" POV? Is there a new mechanims I
should look at?
Do we have a documented "here's how you split your repo with minimal
downsides to end users"? If you give me enough hints I could write it
:-)
The repo in question is http://dev.laptop.org/git?p=projects/xs-config;a=summary
cheers,
m
--
martin.langhoff@gmail.com
martin@laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Splitting off old history to ancillary repo
2008-08-28 2:40 Splitting off old history to ancillary repo Martin Langhoff
@ 2008-08-28 16:57 ` Michael J Gruber
0 siblings, 0 replies; 2+ messages in thread
From: Michael J Gruber @ 2008-08-28 16:57 UTC (permalink / raw)
To: git
Martin Langhoff venit, vidit, dixit 28.08.2008 04:40:
> A project I've inherited has a codebase ~500KB in size. However, in
> early history some large binary blobs were committed to the repo.
> We've gotten rid of those, and they are not interesting to current
> development. But an initial checkout still has to retrieve 60MiB, when
> I'm sure the recent (and interesting) history fits in less than 1MB.
>
> What is the state of grafts from a "keeping the repo mostly
> transparently usable for newcomers" POV? Is there a new mechanims I
> should look at?
Do you mean newcomers who have never cloned your repo before?
I see two ways, both involving history rewriting (and therefore problems
for people who cloned already):
- remove those files using filter-branch
This keeps the whole history in one repo but can produce empty commits
(which touched only the removed files).
- split the history using grafts and use filter-branch to make the split
for good
This gives you a split history which you can now put in different repos.
People interested in the full history can pull both and connect the
history using grafts.
I've used both (depending on the use case), both work well.
Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-28 16:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28 2:40 Splitting off old history to ancillary repo Martin Langhoff
2008-08-28 16:57 ` Michael J Gruber
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).