pygit2
pygit2 copied to clipboard
Python bindings for libgit2
I created two branches with commits like this:  Then I call `checkout` to switch the branch from `old_master` to `master`. Somehow, the cached area is updated after checkout: ...
Split from https://github.com/libgit2/pygit2/pull/1332
I have a GitHub project that installs pygit2 (version 1.13.3) in a workflow action. It was working perfectly fine on macOS 14 (latest) until recently when I started getting the...
I found that `pygit2` can't do that, but I need this feature.
adding more type checking into the library This will add typing information since pygit2 stubs is obsolete at https://github.com/python/typeshed/pull/12785 Also others list at the tasks: # Tasks/TODO - [x] Add...
Hi, I just happened to install pygit2 1.17 (via indirect dependencies from poetry-git-version-plugin that specify >=1.15). Currently, not all wheels are available, since the build is still running, but pypi...
Add wheels for free threaded Python. Currently blocked on cffi adding free threaded support.
Per cibuildwheel's documentation PyPy 3.9+ support is only available on macOS 10.15. I don't know if this breaks compatibility with runtimes on 10.14, 10.15 though :slightly_frowning_face:
https://github.com/libgit2/pygit2/blob/8f3dec8737b23fea23bc45dbad6cfa2a96908d7a/pygit2/_pygit2.pyi#L24 https://github.com/libgit2/pygit2/blob/8f3dec8737b23fea23bc45dbad6cfa2a96908d7a/pygit2/__init__.py#L32 ``` In [1]: import pygit2 In [2]: pygit2.GIT_OBJ_COMMIT --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[2], line 1 ----> 1 pygit2.GIT_OBJ_COMMIT AttributeError: module 'pygit2' has no attribute...
Currently, it will raise `TypeError: expected new array length or list/tuple/str, not _cffi_backend._CDataBase` at `encoding_cstr = ffi.new('char[]', to_bytes(encoding))` while libgit2 supports setting `NULL` and not setting encoding in the commit...