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

Method create

pygit2/branches.py:86–87  ·  view source on GitHub ↗
(self, name: str, commit: Commit, force: bool = False)

Source from the content-addressed store, hash-verified

84 yield branch_name
85
86 def create(self, name: str, commit: Commit, force: bool = False) -> Branch:
87 return self._repository.create_branch(name, commit, force)
88
89 def delete(self, name: str) -> None:
90 self[name].delete()

Callers 15

test_remote_createFunction · 0.45
test_remote_deleteFunction · 0.45
test_remote_listFunction · 0.45
test_remote_collectionFunction · 0.45
remoteFunction · 0.45
test_fetchFunction · 0.45
test_branches_upstreamFunction · 0.45
test_callbackFunction · 0.45
test_bad_cred_typeFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_remote_createFunction · 0.36
test_remote_deleteFunction · 0.36
test_remote_listFunction · 0.36
test_remote_collectionFunction · 0.36
remoteFunction · 0.36
test_fetchFunction · 0.36
test_branches_upstreamFunction · 0.36
test_callbackFunction · 0.36
test_bad_cred_typeFunction · 0.36