git2-rs
git2-rs copied to clipboard
libgit2 bindings for Rust
Warning: If you run the test program, it will pollute your `$TMP` dir. Beware! I wrote a test program to explain my question. https://github.com/srhb/git2-rs-debug-eintr/blob/main/src/main.rs It can be run with a...
For lifetime reasons, `Cred` now doesn't always carry a `git_cred` and therefore `Cred::unwrap()` may now panic if called on a `Cred` created using `Cred::ssh_interactive()`; this is the only backwards-incompatible change...
Note: not cross-compiling, building on `aarch64-unknown-linux-musl` for `aarch64-unknown-linux-musl`. Attempting to build any crate that depends on `libgit2-sys` on `aarch64-unknown-linux-musl` gives link errors about undefined references to `__aarch64_ldadd4_acq_rel`, `__aarch64_swp8_acq_rel`, `__aarch64_cas8_acq_rel`, etc:...
Can it support wasm now? it would be great if git2-rs could compile to wasm32-unknown-unknown [Issue#551](https://github.com/rust-lang/git2-rs/issues/511).Maybe it can use [wasm-git](https://github.com/petersalomonsen/wasm-git) now
Current documentation says this: ```rust /// Prevents checkout from writing the updated files' information to the /// index. /// /// Defaults to true. pub fn update_index(&mut self, update: bool) ->...
Hi, I have a git server which use different port as default 22, so when I try to clone it with something below: builder.clone( "[email protected]:23953/xxxxx", Path::new("/tmp/git2-rs"), )?; It will timeout,...
The library fails with a double free when merging two Diff's built from buffers. Is this intended to be supported? Cargo.toml ``` [dependencies.git2] version = "0.17.2" default-features = false features...
Request support for git lfs for cloning, pulling, fetching and checking out
Both ODB and Repository are ref-counted objects (see https://github.com/libgit2/libgit2/blob/2f20fe8869d7a1df7c9b7a9e2939c1a20533c6dc/src/libgit2/odb.c#L930 for example) so calling `free` doesn't necessarily mean that the underlying object is being freed. There are several methods in git2-rs...
#588 is a simmilar issue to this one but it just requests a way to get the latest commit but i want to get the latest commit for a specific...