MCPcopy Create free account
hub / github.com/libgit2/pygit2 / commit

Method commit

pygit2/transaction.py:173–180  ·  view source on GitHub ↗

Commit the transaction, applying all queued updates.

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

__exit__Method · 0.95

Calls 2

_check_threadMethod · 0.95
check_errorFunction · 0.85