Re: [BUG?] gc and impatience

2013-08-05 Thread Ramkumar Ramachandra
Martin Fick wrote: > I hope > that someone more familiar with git gc than me might take > this on some day. :) More likely scenario: someone who is unfamiliar with it will read and patch it little by little :) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a messa

Re: [BUG?] gc and impatience

2013-08-05 Thread Ramkumar Ramachandra
Duy Nguyen wrote: > Good point. I think that is because gc does not check if gc is already > running. Adding such a check should not be too hard. I think gc could > save its pid in $GIT_DIR/auto-gc.pid. The next auto-gc checks this, if > the pid is valid, skip auto-gc. Check. I also talked about

Re: [BUG?] gc and impatience

2013-08-05 Thread Martin Fick
On Monday, August 05, 2013 11:34:24 am Ramkumar Ramachandra wrote: > Martin Fick wrote: > > https://gerrit-review.googlesource.com/#/c/35215/ > > Very cool. Of what I understood: > > So, the problem is that my .git/objects/pack is polluted > with little packs everytime I fetch (or push, if you'r

Re: [BUG?] gc and impatience

2013-08-05 Thread Ramkumar Ramachandra
Martin Fick wrote: > https://gerrit-review.googlesource.com/#/c/35215/ Very cool. Of what I understood: So, the problem is that my .git/objects/pack is polluted with little packs everytime I fetch (or push, if you're the server), and this is problematic from the perspective of a overtly (naively)

Re: [BUG?] gc and impatience

2013-08-05 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > I am a bit hesitant to dismiss with "It's not the right model", as > the original of accessing the repository from two terminals while > one clearly is being accessed busily by gc falls into the same > category. As to why I think it makes sense: garbage collecting unreferen

Re: [BUG?] gc and impatience

2013-08-05 Thread Junio C Hamano
Duy Nguyen writes: > I worry less about this. It's not the right model to have two machines > modify the same shared repository (gc --auto is only triggered when we > think there are new objects) even though I think we support it. I am a bit hesitant to dismiss with "It's not the right model", a

Re: [BUG?] gc and impatience

2013-08-02 Thread Duy Nguyen
On Sat, Aug 3, 2013 at 11:44 AM, Junio C Hamano wrote: > On Fri, Aug 2, 2013 at 8:53 PM, Duy Nguyen wrote: >> Good point. I think that is because gc does not check if gc is already >> running. Adding such a check should not be too hard. I think gc could >> save its pid in $GIT_DIR/auto-gc.pid. Th

Re: [BUG?] gc and impatience

2013-08-02 Thread Junio C Hamano
On Fri, Aug 2, 2013 at 8:53 PM, Duy Nguyen wrote: > Good point. I think that is because gc does not check if gc is already > running. Adding such a check should not be too hard. I think gc could > save its pid in $GIT_DIR/auto-gc.pid. The next auto-gc checks this, if > the pid is valid, skip auto-

Re: [BUG?] gc and impatience

2013-08-02 Thread Duy Nguyen
On Sat, Aug 3, 2013 at 8:48 AM, Ramkumar Ramachandra wrote: > Auto packing the repository for optimum performance. You may also > run "git gc" manually. See "git help gc" for more information. > > Being my usual impatient self, I opened another prompt and started > merging changes. After the che

[BUG?] gc and impatience

2013-08-02 Thread Ramkumar Ramachandra
Hi, I was pulling in some changes in the morning to find: Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information. Being my usual impatient self, I opened another prompt and started merging changes. After the checkout, it