Commit the transaction, applying all queued updates.
(self)
| 171 | check_error(err) |
| 172 | |
| 173 | def commit(self) -> None: |
| 174 | """Commit the transaction, applying all queued updates.""" |
| 175 | self._check_thread() |
| 176 | if self._tx is None: |
| 177 | raise ValueError('Transaction already closed') |
| 178 | |
| 179 | err = C.git_transaction_commit(self._tx) |
| 180 | check_error(err) |
| 181 | |
| 182 | def __enter__(self) -> ReferenceTransaction: |
| 183 | return self |