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