Skip to content

Commit 8d8780b

Browse files
authored
Merge pull request #1094 from edenhochbaum/patch-1
Tree objects don't nec. point to trees
2 parents 1aeab3f + 45acefb commit 8d8780b

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 of which is the SHA-1 hash of 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)