On Sat, Aug 3, 2013 at 8:48 AM, Ramkumar Ramachandra <artag...@gmail.com> 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 checkout, it started running another gc
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.
> Why is gc not designed for impatient people, and what needs to be done
> to change this?
Some improvements could be made in gc, for example warn users about
upcoming gc so they can run it in background (of course the above bug
should be fixed)
or speed up repack by implementing pack-objects --merge-pack:
Or you could just make a cron job to gc all repos every week and the
problem goes away ;-)
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html