From: Shawn O. Pearce Date: Mon, 05 Feb 2007 05:56:59 GMT Subject: Re: [PATCH 2/2] Use cache_sha1_file() in git-blame and git-merge-recursive. Message-ID: <20070205055659.GA13472@spearce.org> In-Reply-To: <7v7iuxp2xt.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > git-blame needs to register an arbitrary data to in-core index > while annotating a working tree file (or standard input), but > git-blame is a read-only application and the user of it could > even lack the privilege to write into the object store; it is > another good example for cache_sha1_file(). *Excellent* reason for this. But what about pretend_sha1_file() instead? The term 'cache' suggests to me (on first glance) that its loading an existing object and caching it in memory for faster, frequent access, when compared to other non-cached objects. -- Shawn.