分类 git 下的文章

data = blob <data length>\x00<data>
hash = sha1(data)
data = zlib(data)

write(hash[:2] + "/" hash[2:], data)

blob
tree
commit 都类似