Re: GC of alternate object store (was: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?)

2012-08-29 Thread Oswald Buddenhagen
On Tue, Aug 28, 2012 at 09:19:53PM +0200, Hallvard Breien Furuseth wrote: > Oswald Buddenhagen wrote: > > (...)so the second approach is the "bare aggregator repo" which adds > > all other repos as remotes, and the other repos link back via > > alternates. problems: > > > > - to actually share obj

GC of alternate object store (was: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?)

2012-08-28 Thread Hallvard Breien Furuseth
Oswald Buddenhagen wrote: > (...)so the second approach is the "bare aggregator repo" which adds > all other repos as remotes, and the other repos link back via > alternates. problems: > > - to actually share objects, one always needs to push to the aggregator Run a cron job which frequently does

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-27 Thread Oswald Buddenhagen
hi, Junio C Hamano pobox.com> writes: > The "alternates" mechanism [...] sorry for the somewhat late response - i found this thread only now. at qt-project.org we have a somewhat peculiar setup: we have the qt4 repository, and a bunch of qt5 repositories which resulted from a split. qt5 is unde

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-11 Thread Hallvard Breien Furuseth
Junio C Hamano wrote: >Some ideas: > >- Make "clone --reference" without "-s" not to borrow from the > reference repository. (...) Generalize: Introduce volatile alternate object stores. Commands like (remote) fetch, repack, gc will copy desired objects they see there. That allows

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-07 Thread Sascha Cunz
[..] > - By design, the borrowed object store MUST not ever lose any >object from it, as such an object loss can corrupt the borrowing >repositories. In theory, it is OK for the object store whose >objects are borrowed by repositories to acquire new objects, but >losing existing o

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-06 Thread Jeff King
On Sun, Aug 05, 2012 at 11:38:12AM +0200, Michael Haggerty wrote: > I have some other crazy ideas for making the concept even more powerful: > > * Support remote alternate repositories. Local repository obtains > missing objects from the remote as needed. This would probably be > insanely ineff

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-06 Thread Junio C Hamano
Junio C Hamano writes: > - When you have one object store and a repository that does not yet >borrow from it, you may want to make the repository borrow from >the object store. Obviously you can run "echo" like the sample >script in the previous item above, but it is not obvious how

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-05 Thread Junio C Hamano
Michael Haggerty writes: > I have some other crazy ideas for making the concept even more powerful: Sorry, but the "a bit more sanity" topic is not interested in making the concept powerful at all. This is about making it usable with ease without the user having to worry about "oh, I was about

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-05 Thread Michael Haggerty
On 08/05/2012 06:56 AM, Junio C Hamano wrote: The "alternates" mechanism [...] The UI for this mechanism however has some room for improvement, and we may want to start improving it for the next release after the upcoming Git 1.7.12 (or even Git 2.0 if the change is a large one that may be backwa

Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-04 Thread Junio C Hamano
The "alternates" mechanism lets you keep a single object store (not necessarily a git repository on its own, but just the objects/ part of it) on a machine, have multiple repositories on the same machine share objects from it, to save the network transfer bandwidth when cloning from remote reposito