3
Implement git cat-file
Build Git from scratch
2 hours
Level 3 of 3
Read and display Git objects from the object database
Objectives
Complete these objectives to finish this level
- Read objects from .git/objects
- Decompress zlib content
- Parse object headers and content
Test Cases
Your implementation should pass these tests
- cat-file displays object content
- Handles different object types
- Error handling for missing objects
Hints
- 💡 Use zlib to decompress objects
- 💡 Parse type and size from header
- 💡 Handle different object types
Challenge Progress
Level 3 of 3100%