Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle/git/raw: Limit scope of `RemoteCallbacks`
◌ CI pending Lorenz Leutgeb committed 6 months ago
commit 86b7ef23c64811b4b07fae83d22148a5e78a6d28
parent 191c287955f8673ce664fdfd7a88cbbd43f2d30e
1 pending (1 total) View logs
1 file changed +6 -2
modified crates/radicle/src/git/raw.rs
@@ -6,10 +6,14 @@

// Re-exports that are only used within this crate.
pub(crate) use git2::{
-
    message_trailers_strs, AutotagOption, Blob, Config, FetchOptions, FetchPrune, Object,
-
    RemoteCallbacks, Revwalk, Sort,
+
    message_trailers_strs, AutotagOption, Blob, Config, FetchOptions, FetchPrune, Object, Revwalk,
+
    Sort,
};

+
// Re-exports that are only used within this crate for testing.
+
#[cfg(any(test, feature = "test"))]
+
pub(crate) use git2::RemoteCallbacks;
+

// Re-exports that are used by other crates in the workspace, including this crate.
pub use git2::{
    Branch, BranchType, Commit, Direction, Error, ErrorClass, ErrorCode, FileMode, ObjectType, Oid,