Add some basic tooling about that collection of tar balls and you're half way on re-implementing git.