parse and create git tree objects