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

This is a script to reproduce the behavior I'm seeing: ```` #!/usr/bin/env python import tempfile import time import os import pygit2 path = tempfile.mkdtemp(prefix='pygit2_test_') repo = pygit2.init_repository(path) author = pygit2.Signature('Alice...

To have one exception for every `GIT_EXXX` all of them inheriting from `GitError`, use a consistent naming, e.g. `GIT_EINVALIDSPEC` would become `GitInvalidSpecError` or maybe just `InvalidSpecError`. To provide backwards compatibility...

change

Hi, I noticed that there's been some [updates to the backend page] in docs but the website page https://www.pygit2.org/backends.html seems to have been last updated in winter. Where are the...

I keep getting: ` File "\GitWorkflow.py", line 126, in update_submodules` ` repo.update_submodules(callbacks=callbacks, init=False)` ` File "\lib\site-packages\pygit2\repository.py", line 108, in update_submodules` ` check_error(err)` ` File "\lib\site-packages\pygit2\errors.py", line 52, in check_error` `...

Commit e442edaa7d02afcf97f1f2976ab413dab8283b1d can be found in this repository: https://git.sr.ht/~kvik/unionfs git upstream shows this commit as being authored at the epoch.

libgit2

Much to my surprise reading `delta.is_binary` returns the wrong value if one does not iterate over the patches beforehand. Given ```bash mkdir test && cd test touch README.md dd if=/dev/urandom...

bug

Hi libgit2, I'm fairly new to coding so forgive me if this is a bit of stupid question. I'm working on a script that helps automate the adding and commit...

support

I've been accepted in GitHub's sponsors program. This is an opportunity to make pygit2 better: :heart: https://github.com/sponsors/jdavid

I was looking at adding support for `git_commit_amend`, but it's unclear if I should add it to `src/commit.c`, which looks like it's all "getters" via native extension or via FFI.

For consistency and better performance (not creating objects that may not be used). ``` $ grep MEMBER src/* src/diff.c: MEMBER(DiffFile, id, T_OBJECT, "Oid of the item."), src/diff.c: MEMBER(DiffFile, path, T_STRING,...