Illustration: "Fundamental Git Index Operations"
Jon Loeliger's ASCII art in the Discussion section. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Nov 3, 2005 at 13:52 UTC
66158e331b385a81ac825c208c6160a0cdd2324c
1 file changed
+40
README
+40
@@ -399,6 +399,46 @@ save the note about that state, in practice we tend to just write the
399
result to the file `.git/HEAD`, so that we can always see what the
400
last committed state was.
401
402
+Here is an ASCII art by Jon Loeliger that illustrates how
403
+various pieces fit together.
404
+
405
+------------
406
+
407
+ commit-tree
408
+ commit obj
409
+ +----+
410
+ | |
411
+ | |
412
+ V V
413
+ +-----------+
414
+ | Object DB |
415
+ | Backing |
416
+ | Store |
417
+ +-----------+
418
+ ^
419
+ write-tree | |
420
+ tree obj | |
421
+ | | read-tree
422
+ | | tree obj
423
+ V
424
+ +-----------+
425
+ | Index |
426
+ | "cache" |
427
+ +-----------+
428
+ update-index ^
429
+ blob obj | |
430
+ | |
431
+ checkout-index -u | | checkout-index
432
+ stat | | blob obj
433
+ V
434
+ +-----------+
435
+ | Working |
436
+ | Directory |
437
+ +-----------+
438
+
439
+------------
440
+
441
+
442
6) Examining the data
443
~~~~~~~~~~~~~~~~~~~~~
444