Skip to content

Commit 3a5152f

Browse files
authored
Tree objects don't nec. point to trees
> "A single tree object contains one or more tree entries" The language suggests that each tree object contains (at least one) reference to another tree object, which is wrong.
1 parent 1aeab3f commit 3a5152f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/10-git-internals/sections/objects.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ blob
125125
The next type of Git object we'll examine is the _tree_, which solves the problem of storing the filename and also allows you to store a group of files together.
126126
Git stores content in a manner similar to a UNIX filesystem, but a bit simplified.
127127
All the content is stored as tree and blob objects, with trees corresponding to UNIX directory entries and blobs corresponding more or less to inodes or file contents.
128-
A single tree object contains one or more tree entries, each of which contains a SHA-1 pointer to a blob or subtree with its associated mode, type, and filename.
128+
A single tree object contains one or more entries, each containing a SHA-1 pointer to a blob or subtree with its associated mode, type, and filename.
129129
For example, the most recent tree in a project may look something like this:
130130

131131
[source,console]

0 commit comments

Comments
 (0)