toy git
go run ./main.go cat-file -t 1cc829fa538a0f171f0ac4bbf6ee4b5f54f04e15
go run ./main.go cat-file -p 2eefcd5dd1d6215dbac8a3670b2ad707274467af
git cat-file --batch-check --batch-all-objects
gives you a list of git objects(sha1 + type + size).
MIT