pygit2
pygit2 copied to clipboard
Python bindings for libgit2
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...
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
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...
can't install pygit2, this error throws while installing it
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  ### 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 ---------------------------------------------------------------------- ```
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...