From: "Jakub Narębski" <jnareb@gmail.com>
To: Stas Cherkassky <scherkas@gmail.com>
Cc: Andrew Ardill <andrew.ardill@gmail.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: collapsing old git history to reduce repo size, while preserving commit #s and tags
Date: Wed, 30 Oct 2013 16:55:30 +0100 [thread overview]
Message-ID: <52712BF2.2080409@gmail.com> (raw)
In-Reply-To: <CAJSXqrrMCWmRBoRNCLuD6DvU=CSk+MVGrSOCeOROROEaKouVKQ@mail.gmail.com>
On 2013-10-30 08:52, Stas Cherkassky wrote:
>
> Shallow clone (if that's what you meant) is not suitable because it
> doesn't allow to push/pull to/from this shallow repository.
Still? I think there were some work on making shallow clone to
allowing push/pull to/from it.
> I understand that generally git is designed to preserve the history.
> But the problem is real, and probably is not unique to our project.
> The fact that there ARE some ways to modify history (collapse commits,
> rebase, filter-branch) made me hopeful that what I need is also
> possible..
By the very nature of git, namely that the 'parent' link to previous
(as in: this is based on it) commit or commits, is SHA-1 of said commit,
and SHA-1 identifier of commit is based on contents including 'parent'
field.
Both rebase and filter-branch _rewrite_ history (i.e. make modified
copy of history, and let you replace old history by new).
You could try to use father or shallow clone, namely *grafts*, to
'cauterize' history, but there remains same problems as with shallow
clone, perhaps with exception that git won't check things for you.
--
Jakub Narębski
next prev parent reply other threads:[~2013-10-30 15:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAJSXqrr4nA6azBgaD7rBbYSLWonQkn7PvSsPTXjAPaxW6E+LiA@mail.gmail.com>
2013-10-29 22:42 ` collapsing old git history to reduce repo size, while preserving commit #s and tags Stas Cherkassky
2013-10-29 22:52 ` Andrew Ardill
[not found] ` <CAJSXqrr7rHxyXX=_+xgJ4FW2UHSts2jRt7zwrkkw1L3uKHnCtw@mail.gmail.com>
2013-10-30 7:52 ` Stas Cherkassky
2013-10-30 15:55 ` Jakub Narębski [this message]
2013-10-30 16:06 ` Duy Nguyen
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=52712BF2.2080409@gmail.com \
--to=jnareb@gmail.com \
--cc=andrew.ardill@gmail.com \
--cc=git@vger.kernel.org \
--cc=scherkas@gmail.com \
/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).