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

docs at https://www.pygit2.org/recipes/git-show.html suggest to diff against parent to get diff show contents. For initial commits, there are not parents, thus raising `IndexError`

Hello, I have a project with approx 2000 files stored on NFS partition. When I initialize repository with pygit2 all subsequent commits took about 5sec. But after I commit anything...

I'm using the nox unit testing framework (as part of a Salt project) and it's running into a problem where it is failing to build the wheel for pygit2: ```...

Test code: ```python import pygit2 repo = pygit2.Repository(pygit2.discover_repository()) status = repo.status() for filepath, flags in status.items(): print(filepath, flags) ``` Running Result: ``` child.py 128 example.py 128 mvv.txt 513 mvvv.txt 4...

While there is [`pygit2.hashfile`](https://github.com/libgit2/pygit2/blob/fce010dc5fa590f0d832b942bdd1d60ea904f89a/src/pygit2.c#L127-L152) which is a binding for libgit2 [`git_odb_hashfile`](https://libgit2.org/libgit2/#v1.5.1/group/odb/git_odb_hashfile), there appears to be no binding for [`git_repository_hashfile`](https://libgit2.org/libgit2/#v1.5.1/group/repository/git_repository_hashfile). The difference is that `git_repository_hashfile` calculates the file hash using repository...

The sequence of calls > remote.ls_remotes(...) > remote.fetch(...) > remote.push(...) works, while > remote.ls_remotes(...) > remote.push(...) doesn't, producing the GIT_ERROR_NET / "this operation is only valid for push" error. I...

Hello team, I'm using pygit2 to do some fetch operations. The source repo is a local one in the format of `file://C:/repopath` , It works pretty fine on Linux and...

https://github.com/libgit2/pygit2/blob/25b5e0f549149cd1591ec8c1d5ce86ba4deecc05/pygit2/_pygit2.pyi#L463 Shows that commit takes no flags, is this something that we would be wanted? https://github.com/libgit2/pygit2/blob/fcaec818c384b376404e5ff5477317b608f552ce/pygit2/repository.py#L565 blame has a flags option

1. when i pushing by ```remote.push([ref], callbacks=callbacks)```, but there is not any response 2. using git cli push, there is a response. as followd:

It might be easier to add support for future Python versions if we migrate.