rust-lang / git2-rs

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

Support global opts related to server timeouts #1052

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 (along with their getters) The link to libgit2 details: https://github.com/libgit2/libgit2/blob/main/include/git2/common.h#L508C38-L524

ehuss commented 1 month ago

@mzottola It looks like this has some merge conflicts, can you rebase this? Also, in the future, it can be helpful to make sure "Allow edits from maintainers" is checked so that in situations like this I can resolve the conflicts myself.

mzottola commented 1 month ago

@ehuss Understood for next time :+1: It's now rebased, thank you