(self, commit: Commit | Oid | str | None)
| 102 | ) |
| 103 | |
| 104 | def with_commit(self, commit: Commit | Oid | str | None) -> 'Branches': |
| 105 | assert self._commit is None |
| 106 | return Branches(self._repository, self._flag, commit) |
| 107 | |
| 108 | def __contains__(self, name: str) -> bool: |
| 109 | return self.get(name) is not None |