Can `git_index_conflict_get()` be used there? It looks like we're duplicating some logic from lbgit2.