walk a git tree represented by a git commit