Re: Understanding Git Under The Hood: Trees
- From
- Erik Bernoth <erik.bernoth@gmail.com>
- Date
- Aug 15, 2013, 19:32 UTC
- Message-ID
- <CAB46HOmVpMFsu9dWwB+TZW+DQmE-5XOZqJf62Ufz7ak0eGxP5g@mail.gmail.com>
- In-Reply-To
- <7vwqnmrhbw.fsf@alter.siamese.dyndns.org>
On Thu, Aug 15, 2013 at 7:31 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> While the last statement applies to other parts of the system, it is > not true for the in-core index design. We always had a flat index, > and it is not cheating at all. The original "tree" was also a flat > representation of everything under the sun, and hierarchical tree > objects came much later.
To some degree that revalidates my interpretation of Andreas' statements. If I understand it correctly eacht time a shell command is executed, which requires tree interaction, the corresponding tree is read from filesystem to memory completely before anything is done? So if I git-add a file, the whole index is read first, then the memory object is changed and then the resulting change is written to disk bottom-up from the point of view of the tree?