to: - `ThreadSafeRepository::open_opts` - `ThreadSafeRepository::open_with_environment_overrides`
Unified · Split
| @@ -2,6 +2,7 @@ · 1 unmodified line | ||
| 2 | 2 | use std::{borrow::Cow, path::PathBuf}; |
| 3 | 3 | |
| 4 | 4 | use gix_features::threading::OwnShared; |
| 5 | +use gix_macros::momo; | |
| 5 | 6 | |
| 6 | 7 | use super::{Error, Options}; |
| 7 | 8 | use crate::{ |
| @@ -58,6 +59,8 @@ impl ThreadSafeRepository { · 50 unmodified lines | ||
| 58 | 59 | /// |
| 59 | 60 | /// Note that opening a repository for implementing custom hooks is also handle specifically in |
| 60 | 61 | /// [`open_with_environment_overrides()`][Self::open_with_environment_overrides()]. |
| 62 | + #[momo] | |
| 63 | + #[allow(unused_mut)] | |
| 61 | 64 | pub fn open_opts(path: impl Into<PathBuf>, mut options: Options) -> Result<Self, Error> { |
| 62 | 65 | let _span = gix_trace::coarse!("ThreadSafeRepository::open()"); |
| 63 | 66 | let (path, kind) = { |
| @@ -109,6 +112,7 @@ impl ThreadSafeRepository { · 45 unmodified lines | ||
| 109 | 112 | // GIT_PROXY_SSL_CERT, GIT_PROXY_SSL_KEY, GIT_PROXY_SSL_CERT_PASSWORD_PROTECTED. |
| 110 | 113 | // GIT_PROXY_SSL_CAINFO, GIT_SSL_CIPHER_LIST, GIT_HTTP_MAX_REQUESTS, GIT_CURL_FTP_NO_EPSV, |
| 111 | 114 | #[doc(alias = "open_from_env", alias = "git2")] |
| 115 | + #[momo] | |
| 112 | 116 | pub fn open_with_environment_overrides( |
| 113 | 117 | fallback_directory: impl Into<PathBuf>, |
| 114 | 118 | trust_map: gix_sec::trust::Mapping<Options>, |