Re: GSoC - Designing a faster index format
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 23, 2012, 00:46 UTC
- Message-ID
- <m3obrob0vk.fsf@localhost.localdomain>
- In-Reply-To
- <CAKTdtZmYc=xz4zCPQiuSTUvdmbLRKXNWNL3N6_4Bj0gujYmRvw@mail.gmail.com>
elton sky <eltonsky9404@gmail.com> writes:
Show 5 quoted lines
> Got a few questions: > > 1. index is used for building next commit, so it should only include > files created/modified/deleted. But I see it has all entries for > current working dir. why?
Because git is snapshot based, not changeset based. Ecah commit stores state of repository in the form of 'tree' object, which is build out of index. Also index stores extra information, like mtime, about all files to make operations faster (skip unchanged files). The index was originally at the very beginning named dircache.
[...]
-- Jakub Narebski