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

Function test_branches_rename_force

test/test_branch.py:110–113  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

108
109
110def test_branches_rename_force(testrepo: Repository) -> None:
111 original_branch = testrepo.branches.get('master')
112 new_branch = original_branch.rename('i18n', True)
113 assert new_branch.target == LAST_COMMIT
114
115
116def test_branches_rename_invalid(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…