Expand description
Git object types and serialization
Git has four object types: blob, tree, commit, and tag. Each is content-addressed by SHA-1 hash of: “{type} {size}\0{content}”
Structs§
- GitObject
- A git object with type and content
- Object
Id - A 20-byte SHA-1 object ID
- Tree
Entry - Tree entry (mode, name, object id)
Enums§
- Object
Type - The four git object types
Functions§
- parse_
tree - Parse tree content into entries
- serialize_
tree - Serialize tree entries to content