October 2016
Beginner
861 pages
20h 37m
English
Now that we have created both blob and tree objects, the next step in the data model is to create the actual commit object.
Again, we'll use the repository created in the previous examples with the different objects written to the database.
As we saw in Chapter 1, Navigating Git, a commit object consists of the author and committer information, a root tree object, a parent commit (except for the first commit), and a commit message. We have the root tree object generated in the last example, and Git will pick up the author and committer information from the configuration. So, all we need to do is create a commit message and write the commit object. We can do this for each of the ...