From: René Scharfe Date: Sat, 06 Nov 2010 18:07:43 GMT Subject: Re: [PATCH 8/8] Remove pack file handling dependency from wrapper.o Message-ID: <4CD5996F.6010809@lsrfire.ath.cx> In-Reply-To: <20101106115237.GH27641@burratino> Am 06.11.2010 12:52, schrieb Jonathan Nieder: > Commands that might access a git repository should discard pack > windows when memory is tight, but helpers like show-index do not need > to. > > So stop setting try_to_free_pack_memory as the default > try_to_free_routine and instead set up the try_to_free handler > explicitly in main() for callers that require it. Ugh. Having to remember setting this handler is tedious. Can it be set automatically once the first pack is loaded? A quick look suggests that use_pack() would be the right place to do it. René