~/s/vcrs > vcrs cat-file d6d4aee9f11fe0551578774cf2fb289e3d8fe6bd
Tree(
Tree {
leaves: [
Leaf {
mode: "100644",
path: "main.rs",
hash: "b9efac89ccdc6f8d16726dd25158368182036827",
},
],
},
)
I've been rewriting git from scratch to learn a bit about how it works.
It was also an excuse to play with the rust parser combinator crate nom
.
So far it can parse git's basic structure and perform some basic manipulations.