rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.64k stars 380 forks source link

Add global opts related to server timeouts #1051

Closed mzottola closed 1 month ago

mzottola commented 1 month ago

Hello,

We would like to apply some timeouts during git operations i.e git clone The libgit2 provides 2 global options for that:

The purpose of this PR is to add the support for those options (with the getters as well) The link to libgit2 details: https://github.com/libgit2/libgit2/blob/main/include/git2/common.h#L508C38-L524