As of now the documentation states in an example that a branch can be created via
repo.branches.local.crate("name-for-a-branch")
see
|
>>> new_branch = repo.branches.local.create('new-branch') |
but the signature of actual
create function is different and requires specifying a commit
|
def create(self, name: str, commit, force=False): |
As of now the documentation states in an example that a branch can be created via
see
pygit2/docs/branches.rst
Line 36 in 2accdf9
but the signature of actual
createfunction is different and requires specifying a commitpygit2/pygit2/repository.py
Line 1635 in 2accdf9