added `diff(repo::Repository, left::String, right::GitIndex, opts=nothing)`