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

Function test_amend_commit_no_op

test/test_commit.py:231–238  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

229
230
231def test_amend_commit_no_op(barerepo: Repository) -> None:
232 repo = barerepo
233 commit = repo[COMMIT_SHA_TO_AMEND]
234 assert isinstance(commit, Commit)
235 assert commit.id == repo.head.target
236
237 amended_oid = repo.amend_commit(commit, None)
238 assert amended_oid == commit.id
239
240
241def test_amend_commit_argument_types(barerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

amend_commitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…