From: Jakub Narebski Date: Fri, 23 Mar 2012 00:46:09 GMT Subject: Re: GSoC - Designing a faster index format Message-ID: In-Reply-To: elton sky writes: > 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