git2-rs icon indicating copy to clipboard operation
git2-rs copied to clipboard

libgit2 bindings for Rust

Results 143 git2-rs issues
Sort by recently updated
recently updated
newest added

[This method](https://docs.rs/git2/0.15.0/git2/struct.Index.html#method.remove) (index.remove) takes an i32 as a `stage` param, but it is unclear what it does. There are some possible values on the libgit2 [documentation](https://libgit2.org/libgit2/#HEAD/type/git_index_stage_t), shouldn't be added as...

I have some code like this in a function: ```rust repo.odb() .context("Failed to get the repo's object database") .unwrap() .add_new_mempack_backend(999) .context("Failed to create new mempack ODB backend") .unwrap(); ``` So...

In response to #778 I added wrapper functions for - `git_index_conflict_add` - `git_index_conflict_remove` - `git_index_conflict_cleanup` - `git_index_conflict_get` However, I do not know if this trivial addition is actually safe, as...

Hey, my package manager currently only has `libgit2` version `1.3.0` available. I'm using MacPorts (on macOS 10.14.6), but if I'm not mistaken, [Ubuntu 22.04 uses version `1.1.0`](https://packages.ubuntu.com/jammy/libgit2-dev). I think it...

On GLIBC, compile libgit2 with `-D_FILE_OFFSET_BITS=64`. On 32-bit architectures, this is needed for libgit2 to access files larger than 2 GiB. While here, also use `-D_TIME_BITS=64`, which is needed on...

I don't understand why many methods return `Option` instead of `Result` when decoding a string. It hides information that could be used by the caller to form a more meaningful...

I'm using git2 to clone information from [Subsurface](https://subsurface-divelog.org/). Subsurface uses a branch equal to the email/username for storing info, but doesn't change the default branch from master. Historically this has...

Hi, I'm using this library in my project https://github.com/locenv/locenv and the compiled binary for Windows is re-exported libgit2 API, which should not. The example binary that has this issue can...

Currently, `Reference` has an implementation for `Eq` (and `PartialEq`) that uses `git_reference_cmp` under the hood to determine if two references are "equal". However, `git_reference_cmp` may return `0` ("yes they're equal")...

If zlib-ng is enabled through any other dependency but the `git2/zlib-ng-compat` feature is missing a `error reading from the zlib stream; class=Zlib (5).` is shown at runtime. This error is...