From: Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
To: git@vger.kernel.org
Subject: Re: Splitting off old history to ancillary repo
Date: Thu, 28 Aug 2008 18:57:57 +0200 [thread overview]
Message-ID: <48B6D915.8080706@fastmail.fm> (raw)
In-Reply-To: <46a038f90808271940w3aaf5c4ek6329e8066724c778@mail.gmail.com>
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
prev parent reply other threads:[~2008-08-28 16:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 2:40 Splitting off old history to ancillary repo Martin Langhoff
2008-08-28 16:57 ` Michael J Gruber [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=48B6D915.8080706@fastmail.fm \
--to=michaeljgruber+gmane@fastmail.fm \
--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).