libgit2
libgit2 copied to clipboard
A cross-platform, linkable library implementation of Git that you can use in your application.
"fixes" #6170 report USE_SSH2 as disabled instead of not found.
The built-in SSH transport currently only supports socket connections directly to a remote host. I'm attempting to write support for Krypton (https://krypt.co) to work with libgit2, but the lack of...
### Reproduction steps 1) Create a repository that has a submodule called "mysubmodule". 2) Change directory to a folder which has a subfolder called "mysubmodule". 3) Clone the main repository...
### Reproduction steps Use a repository where you have a reflog for HEAD and a reflog for the current branch to which HEAD points, both should not match. Use `git_revparse_single(&obj,...
Since Git for Windows >= 2.24 this is not used any more. I'm unsure whether we should proceed to drop even more PROGRAMDATA related code.
GIT_EBAREREPO is supposed to be used for operations that are not allowed on a bare repository. But in this case it's the opposite and the operation is not allowed on...
Cloning, e.g., https://github.com/rust-lang/crates.io-index.git (but probably any repo) does a lot of unnecessary mmap churn. ### Reproduction steps ``` #include "git2.h" int main(void) { git_libgit2_init(); git_repository *repo = NULL; const char...
examples: add support for `checkout -- ...` to discard changes in working directory bugfix: checkout given paths without force to overwrite modified files
Manually migrating from https://github.com/libgit2/libgit2sharp/issues/1903 ### Reproduction steps 1. Try this with an existing repo. Put a BOM at the header of a .gitignore file, and a directory to ignore such...
Cloning with a remote callback results in HEAD pointing to the user's `init.defaultBranch` instead of the default branch of the cloned repository. ### Reproduction steps This uses pygit2, I haven't...