pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Mismatch of signature and example in docs

Open JanczarKurek opened this issue 2 years ago • 0 comments

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 https://github.com/libgit2/pygit2/blob/2accdf97ded8c3b777465e22c4e779692562fa9f/docs/branches.rst?plain=1#L36 but the signature of actual create function is different and requires specifying a commit https://github.com/libgit2/pygit2/blob/2accdf97ded8c3b777465e22c4e779692562fa9f/pygit2/repository.py#L1635

JanczarKurek avatar Aug 14 '23 10:08 JanczarKurek