libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Add ConflictCollection.__contains__ #1181

Closed jorio closed 1 year ago

jorio commented 1 year ago

This PR makes it possible to use the in operator with a ConflictCollection, e.g.:

does_it_conflict = "some_path" in repo.index.conflicts