git2-rs
git2-rs copied to clipboard
libgit2 bindings for Rust
Unexpected behavior happened when using `get_attr_bytes`. Here's a minimal example: in `src/main.rs`: ```rust use git2::{AttrCheckFlags, Repository}; use std::path::PathBuf; use std::process::Command; fn main() { let repo = Repository::open(".").unwrap(); let git2_get =...
This change came out of some work I'm doing on https://github.com/mitre/hipcheck, and it seemed like it would be useful upstream as well.
Built on top of #1071, this PR removes the obsolete `Option` wrapper around `Error::last_error` and removes all the unwraps that existed to handle it.
This changes the type signature of `TracingCb` to use a `&[u8]` over an `&str`, leaving the conversion to the consumer as planned. This is a breaking change and will require...
This PR adds a dependency on the `http` crate for the `http::Method` type, and adds some HTTP related constants defined in `libgit2` at https://github.com/libgit2/libgit2/blob/2ecc8586f7eec4063b5da1563d0a33f9e9f9fcf7/src/libgit2/transports/http.c#L68-L95.
👋 Hey! First, thank you for this wonderful project. I'm writing here because I'm trying to write a git extension called [git-metrics](https://github.com/jdrouet/git-metrics) which would allow to store metrics regarding the...
# Overview The provided documentation for cloning with an SSH key closely follows the code below. I keep getting an authentication error even after trying most of the closed-issue solutions...
MacOS version: 14.5 Sonoma rustc & cargo version: 1.79.0 openssl version: 3.3.1 I'm getting lots of errors related to undefined symbols for arm64 architecture when trying to build. ``` Undefined...
It is often desirable to Linux distributions to de-bundle packages as much as possible so that system versions of libraries are used instead of statically compiled versions. This is problematic...
It seems that version 0.19.0 broke printing PatchHeader formatted diffs. To reproduce (produces no lines): ```rust fn main() { let repo = git2::Repository::open("..").unwrap(); let diff = repo.diff_index_to_workdir(None, None).unwrap(); diff.print( git2::DiffFormat::PatchHeader,...