pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Python bindings for libgit2

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

Is there any way to sign commits (and tags maybe) with pygit2? I performed a quick search about `gpg` and `signed` both in the repository and documentation website and could...

feature

We can achieve it using `git restore file_name`. How can we achieve this using pygit2?

The [recipes](http://www.pygit2.org/recipes.html) section doesn't contain `commit` example. It would be nice to see "empty commit" example and example with some payload there. https://github.com/sdg-mit/gitless/issues/176

documentation

In the docstring for `BaseRepository.diff`, the `kwarg` argument should be `flags`, not `flag` (note the missing s). https://github.com/libgit2/pygit2/blob/d32778816444d9420892f526d57fa5ec3f2cdbdd/pygit2/repository.py#L509-L512 The function `BaseRepository.diff` maps to various other functions where the argument is...

I am trying to determine how to use git_push_options with a remote push. I'm unable to find any documentation, tests or working examples. My goal is to implement something similar...

Originally I'm trying to do a git fetch, but the [git-clone-ssh recipe](http://www.pygit2.org/recipes/git-clone-ssh.html) has the same issue. I'm using a modified version of the recipe to make it a real world...

Hi, @jdavid , @carlosmn , I'd like to report a vulnerability issue in **pygit2_1.9.1**. ### Dependency Graph between Python and Shared Libraries ![image](https://user-images.githubusercontent.com/102780639/161386647-2da4f0f1-970f-438e-8945-b72292e6a2d5.png) ### Issue Description As shown in the...

``` ====================================================================== FAIL: test_no_context_lines (test.test_patch.PatchTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/pygit2-0.27.1/test/test_patch.py", line 192, in test_no_context_lines self.assertEqual(context_count, 0) AssertionError: 1 != 0 ---------------------------------------------------------------------- ```

bug

When scanning a repo through such means: ```python todocommits = set() for ref in repo.references: ref = repo.references.get(ref) todocommits.add(ref.peel(pygit2.Commit)) todotrees = set() while todocommits: c = todocommits.pop() todotrees.add(c.tree) todocommits.update(c.parents) todoblobs...