Code

Let "git svn" run "git gc --auto" occasionally
authorKarl Hasselström <kha@treskal.com>
Sun, 3 Feb 2008 16:56:18 +0000 (17:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Feb 2008 21:00:09 +0000 (13:00 -0800)
commit94bc914c5e1e46160f79e743ec369e483bf9f5cd
tree702b67958176c009b759a04197ced3fc76f15c9d
parentaf788a6eb510c1df4a3222b0403a088789ca2bac
Let "git svn" run "git gc --auto" occasionally

Let "git svn" run "git gc --auto" every 1000 imported commits to
reduce the number of loose objects.

To handle the common use case of frequent imports, where each
invocation typically fetches much less than 1000 commits, also run gc
unconditionally at the end of the import.

"1000" is the same number that was used by default when we called
git-repack. It isn't necessarily still the best choice.

Signed-off-by: Karl Hasselström <kha@treskal.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl