Thread (1 message) 1 message, 1 author, 2017-11-20

Re: Why gc --auto is called so rarely?

From: Junio C Hamano <hidden>
Date: 2017-11-20 00:46:41

Ilya Kantor [off-list ref] writes:
...It seems sane to git gc --auto from command that are expected to take time.

That's probably the reason why it's not called on commits and
called on receive-pack.

But then why call it on merges? Especially on those that have no
conflicts and should run fast.  Also, merges are not supposed to
introduce unreachable objects.
The primary thing we want the users get out of running "gc --auto"
during these operations are not the removal of unreachable garbage.
It is primarily run to reduce the number of loose objects and
prevent great many numbers of tiny packfiles from being accumulated,
so the places you see calls to it tend to be after creating new
objects in the repository.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help