X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=README;h=4a2616ba570728320f0b2cf8d7e80df32cbba603;hb=54a9ba0d44c37c43670087793bfeb1b54d718cdb;hp=0ee49d4898c32d9c7321678c2109a87235ad4d84;hpb=a7154e916c6fab01dfb67629dae8c4430daff669;p=git.git diff --git a/README b/README index 0ee49d48..4a2616ba 100644 --- a/README +++ b/README @@ -399,6 +399,46 @@ save the note about that state, in practice we tend to just write the result to the file `.git/HEAD`, so that we can always see what the last committed state was. +Here is an ASCII art by Jon Loeliger that illustrates how +various pieces fit together. + +------------ + + commit-tree + commit obj + +----+ + | | + | | + V V + +-----------+ + | Object DB | + | Backing | + | Store | + +-----------+ + ^ + write-tree | | + tree obj | | + | | read-tree + | | tree obj + V + +-----------+ + | Index | + | "cache" | + +-----------+ + update-index ^ + blob obj | | + | | + checkout-index -u | | checkout-index + stat | | blob obj + V + +-----------+ + | Working | + | Directory | + +-----------+ + +------------ + + 6) Examining the data ~~~~~~~~~~~~~~~~~~~~~