pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Python bindings for libgit2

Results 203 pygit2 issues
Sort by recently updated
recently updated
newest added

The newest version of [arrow](https://github.com/arrow-py/arrow) library doesn't have `timestamp` property anymore, only [method](https://arrow.readthedocs.io/en/latest/#arrow.arrow.Arrow.timestamp). When I try to run the pygit2 with latest arrow (arrow==1.2.2) I get this in the output...

Is there a built-in utility to coerce a value from .status() into a string of flags by name? If not is this something that could be PR'd?

When using compiled version 1.7. 2 on Debian Bullseye through ``` pip3 install pygit2 ``` I observe that certificate from gitlab.apertis.org fails with ``` _pygit2.GitError: user rejected certificate for gitlab.apertis.org...

Please someone tell me function equal to `git mv`

It looks like it is currently impossible to access the `Tag` object from a `Reference` that is a tag. The C API provides `git_reference_is_tag` and `git_tag_lookup`, but there doesn't seem...

feature

The apply Function of the Repository Class fails if a diff contains a blank line with the Error = "Error: _pygit2.GitError: hunk at line ... did not apply" To make...

I was thinking of adding type annotations to some of the APIs to assist IDEs in parsing them and providing useful completion. Since it currently does not exist in the...

feature

diff_get_delta_byindex() may result incorrect value of delta->flags as described in the comment of git_diff_get_delta() (git2/diff.h) ``` Note that the flags on the delta related to whether it has binary content...

Subject says it all. Here is the steps to reproduce it: ``` % git clone --depth 1 % git fetch --depth 1 origin % git checkout FETCH_HEAD ``` ``` >>>...

- Unable to set the locally checkedout branch to the remote. Tried to create_reference, set_target, set_hear, and even update object attributes to point to the upstream. I have had no...