Implement Repo#log and Index#tree