Re: Branches & directories
- From
Jeff King <peff@peff.net>
- Date
- Oct 3, 2011, 07:44 UTC
- Message-ID
- <20111003074412.GC9455@sigill.intra.peff.net>
- In-Reply-To
- <vpqmxdiikt2.fsf@bauges.imag.fr>
On Mon, Oct 03, 2011 at 09:41:29AM +0200, Matthieu Moy wrote:
Show 11 quoted lines
> Jeff King <peff@peff.net> writes: > > > Speaking of which; does anybody know of a git-aware ccache-like tool? > > We already have a nice index of the sha1 of each file in the repository > > (along with a stat cache showing us whether it's up-to-date or not). > > Something like ccache could avoid even looking in the C files at all if > > it relied on git's index. > > It would be a bit harder than that I think. IIRC, ccache hashes the > preprocessed file, hence it will notice if a .h file changed, even if > it's outside the project.
Yeah, you'd have to maintain your own dependency tree, then. Which is nasty (aside from the work involved), because I don't think you can portably get the header dependencies out of the C compiler.
Oh well.
-Peff