git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'git replace' and pushing
@ 2010-11-24  4:33 Cory Fields
  2010-11-25  8:37 ` Michael J Gruber
  0 siblings, 1 reply; 10+ messages in thread
From: Cory Fields @ 2010-11-24  4:33 UTC (permalink / raw)
  To: git

I am having some trouble understanding how a replaced object (commit)
should behave when pushed to a remote repo. Here's my scenario:

We are moving from svn to git. Our svn repo is huge, and most of the
history is useless. To save space, I would like to do a 50/50 split so
that when the repo is cloned, 50% is seen by default, and the
historical 50% can be seen by fetching the replacement history. I've
done this by creating a phony snapshot at 3 then using a 'replace' to
put the others on top. The history is purely linear.

1---2---3---4---5
                 \---4---5

When the replacement is in place, the repo is half size (commit-wise)
as expected. The problem is that 'git push' does not honor the
replace. So when I push, all objects go with it, which defeats the
purpose. The only way that seams to work is doing a filter-branch and
replacing the other way.

Is this by design? I would really like a way to split the repo without
breaking hashes for the developers that have already begun using git
svn.

Thanks,
Cory

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

end of thread, other threads:[~2010-11-27 17:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24  4:33 'git replace' and pushing Cory Fields
2010-11-25  8:37 ` Michael J Gruber
2010-11-26 21:16   ` Cory Fields
2010-11-26 21:43     ` Jonathan Nieder
2010-11-26 23:18       ` Junio C Hamano
2010-11-27  1:58         ` Cory Fields
2010-11-26 20:29           ` Martin von Zweigbergk
2010-11-27  1:59           ` Cory Fields
2010-11-27  7:52           ` Jonathan Nieder
2010-11-27 17:54             ` Cory Fields

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