From 1d9a3ba8209c76ed35c8776c086e1050d7de9c22 Mon Sep 17 00:00:00 2001 From: Siarhei Bobryk Date: Sat, 1 Jun 2019 14:48:11 +0300 Subject: [PATCH] Add extra notes about format for a commit object From my point of view we should note here that a commit object contains its parent commit(s) --- book/10-git-internals/sections/objects.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/10-git-internals/sections/objects.asc b/book/10-git-internals/sections/objects.asc index 4aeef0aeb..1e48a81f0 100644 --- a/book/10-git-internals/sections/objects.asc +++ b/book/10-git-internals/sections/objects.asc @@ -271,7 +271,7 @@ committer Scott Chacon 1243040974 -0700 first commit ---- -The format for a commit object is simple: it specifies the top-level tree for the snapshot of the project at that point; the author/committer information (which uses your `user.name` and `user.email` configuration settings and a timestamp); a blank line, and then the commit message. +The format for a commit object is simple: it specifies the top-level tree for the snapshot of the project at that point; the parent commits if any (the commit object described above does not have any parents); the author/committer information (which uses your `user.name` and `user.email` configuration settings and a timestamp); a blank line, and then the commit message. Next, you'll write the other two commit objects, each referencing the commit that came directly before it: