From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: Branches & directories Date: Mon, 3 Oct 2011 03:44:12 -0400 Message-ID: <20111003074412.GC9455@sigill.intra.peff.net> References: <4E889813.8070205@gmail.com> <20111003030723.GA24523@sigill.intra.peff.net> <20111003073456.GA10054@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Hilco Wijbenga , Robin Rosenberg , Kyle Moffett , Michael Witten , Junio C Hamano , Evan Shelhamer , Git Mailing List To: Matthieu Moy X-From: git-owner@vger.kernel.org Mon Oct 03 09:44:21 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RAdCG-0003DE-54 for gcvg-git-2@lo.gmane.org; Mon, 03 Oct 2011 09:44:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002Ab1JCHoQ (ORCPT ); Mon, 3 Oct 2011 03:44:16 -0400 Received: from 99-108-226-0.lightspeed.iplsin.sbcglobal.net ([99.108.226.0]:51463 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175Ab1JCHoP (ORCPT ); Mon, 3 Oct 2011 03:44:15 -0400 Received: (qmail 24842 invoked by uid 107); 3 Oct 2011 07:49:19 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Mon, 03 Oct 2011 03:49:19 -0400 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Mon, 03 Oct 2011 03:44:12 -0400 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Oct 03, 2011 at 09:41:29AM +0200, Matthieu Moy wrote: > Jeff King 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