File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,12 @@ pub fn discover(directory: impl AsRef<std::path::Path>) -> Result<Repository, di
222
222
ThreadSafeRepository :: discover ( directory) . map ( Into :: into)
223
223
}
224
224
225
+ /// See [`ThreadSafeRepository::open_with_environment_overrides()`], but returns a [`Repository`] instead.
226
+ #[ allow( clippy:: result_large_err) ]
227
+ pub fn open_with_environment_overrides ( directory : impl AsRef < std:: path:: Path > ) -> Result < Repository , discover:: Error > {
228
+ ThreadSafeRepository :: open_with_environment_overrides ( directory, Default :: default ( ) ) . map ( Into :: into)
229
+ }
230
+
225
231
/// See [`ThreadSafeRepository::init()`], but returns a [`Repository`] instead.
226
232
#[ allow( clippy:: result_large_err) ]
227
233
pub fn init ( directory : impl AsRef < std:: path:: Path > ) -> Result < Repository , init:: Error > {
You can’t perform that action at this time.
0 commit comments