From: Tomas Carnecky Date: Thu, 23 Dec 2010 05:27:49 GMT Subject: Re: Using overlay filesystem for "other" files idea Message-ID: <4D12DDD5.4050103@dbservice.com> In-Reply-To: On 12/23/10 12:02 AM, Evgeniy Ivanov wrote: > Hello, > > I got following idea. > > If different branches seriously differ and you switch branches, then > it's more likely you will loose most part of build files (e.g. when > run build). Use ccache. > Also in projects that may have some bugs in build system (e.g. buggy > makefiles) there is a chance you will not get clean build environment. > E.g. somebody forgot to add include file as dependency in Makefile --- > oops, you're in trouble. Fix your Makefiles. Or run git clean, see below. > Even without bugs in build system, some temp files are overwritten > each time you run build for a custom branch. > > I think using overlays for other files can help much to solve this > issue. You can have git repository in regular directory (like now) and > overlay fs mounted over this repository (for each branch its own > overlay). > Another benefit is clearing source tree after build. git clean -dfx. Or use two different working trees. See contrib/workdir/git-new-workdir. tom