pygit2
pygit2 copied to clipboard
Python bindings for libgit2
I've recently run into some trouble working with fetch/pull refspecs in pygit2 due to libgit2 features that haven't been exposed to python. The main issues I've encountered are: - There's...
Sorry if this is already supported, but I can't find in the documention nor in the code. AFAIK, it's not currently possible to blame a file in a specific commit,...
It would be intuitive if this worked: ```python r = Repository('.git') r['103ea4507a9df26a19388cd4115c8bfd1fb784af'] == r['103ea4507a9df26a19388cd4115c8bfd1fb784af'] ``` I'd like to add a `__eq__` method to `Object` which compares the underlying `Oid` object...
Does pygit2 implements 'git push --mirror'? If yes, please advice or point me to the documentation. Thanks in advance. I am working on a script which mirrors a repository and...
How to do "git log tag1..tag2" with pygit2? Is there a way to execute sh type git commands from within pygit2 or should I use other tool (subprocess.Popen)? I just...
The Advanced installation instructions don't provide any guidance on installing pygit2 from a repository checkout. There are instructions for installing libgit2 but then for pygit2 it only says the following:...
Is there a way to pass in id_abbrev=40 into diff operation? Seems that libgit2 allows that, but there's no way to pass that via pygit2 diff/diff_to_tree functions Go libgit2 allows...
Incorrectly decoded strings in Repository.path and Repository.workdir when using Python 3 on Windows
Example: > \>import pygit2 > \>import sys > \>r = pygit2.init_repository(r"C:\repösitory") > \>r.path 'C:/repösitory/.git/' # this is a wrongly decoded path > \>r.path.encode(sys.getfilesystemencoding()).decode("utf-8") # workaround 'C:/repösitory/.git/' # this looks right...
In git, there are two ways to connect/clone a remote repository: ``` git clone [email protected]:libgit2/pygit2.git git clone ssh://[email protected]:2345/libgit2/pygit2.git ``` and the 2nd one support to connect to a remote git...
When there is no `~/.gitconfig`, the following code snippet ```python import pygit2 global_config = pygit2.Config.get_global_config() # ← Exception raised here global_config['user.email'] = '[email protected]' ``` fails with ``` Traceback (most recent...