Re: [1.8.0] use 'stage' term consistently
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- May 6, 2012, 21:21 UTC
- Message-ID
- <201205062321.52148.jnareb@gmail.com>
- In-Reply-To
- <CAMP44s3kkEn+_fhdrXyT9znNDE_u39pv1cFvZ+kLFyzOVpsjHg@mail.gmail.com>
On Sun, May 6, 2012, Felipe Contreras wrote:
Show 15 quoted lines
> On Sun, May 6, 2012 at 12:39 PM, Matthieu Moy > <Matthieu.Moy@grenoble-inp.fr> wrote: > > Jakub Narebski <jnareb@gmail.com> writes: > > > > > Actually Git porcelain does use 'the index' as a cache (computing), > > > i.e. as a place to store redundant information (stat data, sha-1 > > > for trees with DIRC dircache extension) for faster access. > > > > This is an implementation optimization, that is not supposed to be > > visible for the user. Commands refering to the "cache" are not about > > stat data cache (e.g. "git diff --cached" is really about the content, > > not the stat cache). > > Exactly; that's an implementation detail that doesn't affect how the > user actually interacts with the staging area.
Well, it does (or hopefully just did) affect the user: _if it fails_, in the form of empty diff on no changes because of stat-dirtyness or racy-git :-P
-- Jakub Narebski Poland