From: Junio C Hamano Date: Mon, 05 Dec 2005 17:40:21 GMT Subject: Re: make gitfakemmap standalone to fix linking error in git.c Message-ID: <7vfyp7cuii.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <81b0412b0512050524w7b632651n93c836fda41a39d@mail.gmail.com> Alex Riesen writes: > Why does it always happen... Because you touched you did not absolutely have to ;-). When I took setenv patch for git.c, I was thinking about something similar. It may be cleaner to split out the pieces so that the functions like usage(), die(), xmalloc() and friends could be linkable in git.c and others that want to link in only the minimum set without including "cache.h" which has more intimate knowledge of other git internals.