Re: [PATCH 2/2] Use cache_sha1_file() in git-blame and git-merge-recursive.
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 5, 2007, 05:56 UTC
- Message-ID
- <20070205055659.GA13472@spearce.org>
- In-Reply-To
- <7v7iuxp2xt.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 5 quoted lines
> 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.