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

here is my code ```rust pub fn push(&self, branch: &str) -> Result { let mut remote = self .repo .find_remote("origin") .with_context(|| "Failed to push the repository")?; let branch = self...

This PR adds the functionality of the "git credential fill" command to the git credential helper. This allows for better retrieval of credentials. The PR is in 3 commits: -...

i try to use diff to check source_branch and target_branch last commit, at first, it seemed like everything was normal but when i try to use revert, diff will keep...

Hi all, first of all, I would like to thank you for providing this awesome libgit2 wrapper, including the searchable docs.rs documentation. This already helped me a lot in my...

Tools such as [git-credential-oauth](https://github.com/hickford/git-credential-oauth) rely on a chained helper configuration to store the acquired credentials. Unimplemented features in this PR: - This does not pass on properties other than `username`...

S-waiting-on-author

I am currently using git2 0.13.12. If i read the documentation for write: https://docs.rs/git2/0.13.12/git2/struct.Index.html#method.write > Write an existing index object from memory back to disk using an atomic file lock....

The [`git2::opts`](https://docs.rs/git2/latest/git2/opts/index.html) module exposes some options, but not all. I'm interested in being able to set `GIT_OPT_SET_SSL_CERT_LOCATIONS` to control where `libgit2` looks for SSL certificates. If there is some workaround...

Forwarding https://github.com/nabijaczleweli/cargo-update/issues/176 and https://github.com/nabijaczleweli/cargo-update/issues/186 – MacOS/M1 and previous ports: Cargo-update has ```toml git2 = "0.11" ``` set, and a user got ``` = note: Undefined symbols for architecture arm64: "_iconv",...

So I am struggling with how you would perform a rebase. I want to handle a case where a remote has changes pushed to it and I now want to...

Hey :wave: I have a peculiar case that I've created a reproducible for. If you clone this repository https://github.com/FintanH/git2-binary-check and do `cargo run`, you'll get the following output: ``` Path:...