pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Python bindings for libgit2

Results 192 pygit2 issues
Sort by recently updated
recently updated
newest added

https://www.pygit2.org/commit_log.html describes a `Walker `object, but does not explain how to get one or how to use it. Are we to infer that the the iterator produced by the call...

Trying adding file with IndexEntry, this my way: ``` id = repo.create_blob('foo bar') entry = pygit2.IndexEntry('zend2.txt', id, pygit2.GIT_FILEMODE_BLOB_EXECUTABLE) repo.index.add(entry) repo.index.write() ``` But with `git status` return this. ``` On branch...

Add support for: * Initializing a submodule * Synchronizing the repo with updates to the config * Reloading the submodule information * Add the submodule HEAD to the index *...

I read **[code here](https://github.com/libgit2/pygit2/blob/4ae5420b15c613a151043b5bd52ebd4b44329476/pygit2/repository.py#L1223)** and found each create new branch required a commit. ```python def create(self, name, commit, force=False): return self._repository.create_branch(name, commit, force) ``` How create new branch without commit?

Hello. I pretty sure that my problem is extremely simple or solved many times, but I can't find the right answer. Is there any possibility to get the last commit...

feature
libgit2

Hi, I am testing out using pygit2 to help me migrate a large set of repository from Gerrit to GitLab I am basing the process on this document [here](https://www.atlassian.com/git/tutorials/git-move-repository) I...

Hi, I am planning to use pygit2 to automate the migration of our Gerrit repositories to GitLab I have read the part https://www.pygit2.org/recipes/git-clone-mirror.html I am looking for the counter part...

I was following https://www.pygit2.org/recipes/git-cherry-pick.html#cherry-picking-a-commit-without-a-working-copy and it seemed to work at first but then I noticed that it pulls in extra commits that I've never wanted. I think that this example...

feature
documentation

I am creating an issue rather than a PR because I have not been able to create a working Odb or Refdb backend, but I have found several bugs. Please...

i want to get final_committer name when use git blame for line, but get NoneType, and i found what cause that is the committer email is none, but all i...