pygit2
pygit2 copied to clipboard
Python bindings for libgit2
Hi, would it be possible to release Python 3.13 manylinux wheels to PyPI? Thanks!
Traceback (most recent call last): File "/home/hramrach/kbuild/python/tests/test_branch_graph.py", line 32, in setUp self.repo.lookup_branch(branch).set_target(commit) _pygit2.GitError: no error ???
import os import pygit2 source = pygit2.Repository("pygit2") dest = pygit2.init_repository("dest", bare=True) remote = dest.remotes.create_anonymous(f'file://{os.path.abspath("pygit2")}') remote.fetch(depth=1, refspecs=[f"refs/tags/v1.15.1:refs/tags/v1.15.1"]) # now if you 'git log v1.15.1' in ./dest you'll see many commits, not...
Hi, I'm trying to use pygit2 to resolve repo conflicts. I intentionally created a conflict between a file in the local repo and a file in the remote repo. I...
map libgit2's `git_index_conflict_add()` as `Index.add_conflict()`.
``` (venv) cc@pretty:~$ pip install pygit2 Collecting pygit2 Using cached pygit2-1.18.0.tar.gz (773 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done...
I've cloned the pygit2 repo as a runnable and testable IDE project and I think many people would want to do the same. Can we have IDE specific files gitignored?...
I was trying to do the equivalent of `git for-each-ref refs/tags` and get which tags are lightweight and which ones are annotated. The closest that I could find was repo.references.iterator(ReferenceFilter.TAGS),...
This is probably more of a libgit2 question but given that I am working on pygit2, I better start the conversation over here. I am working on writing unit tests...
Hey. Not sure whether this is a bug or considered valid (though probably strange) usage, but `Index.add()` - and presumably `Index.add_all() as well as `IndexEntry`, too - accept paths where...