Building Git in Elixir — Part 2 (Store Trees & Initial Commit)
Published in
6 min readMar 10, 2021
In the previous article of this series, I focused on initializing repository and storing blobs for file content. In this article, I will focus on storing trees and first commit.
A Bit of Theory
As explained in previous article, a tree stores certain information about the stored blobs. It is one more level of indirection above blobs for easier lookup. If we examine Git’s objects database using git cat-file
command we can see —