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
222222 ThreadSafeRepository :: discover ( directory) . map ( Into :: into)
223223}
224224
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 Into < std:: path:: PathBuf > ) -> Result < Repository , open:: Error > {
228+ ThreadSafeRepository :: open_with_environment_overrides ( directory, Default :: default ( ) ) . map ( Into :: into)
229+ }
230+
225231/// See [`ThreadSafeRepository::init()`], but returns a [`Repository`] instead.
226232#[ allow( clippy:: result_large_err) ]
227233pub fn init ( directory : impl AsRef < std:: path:: Path > ) -> Result < Repository , init:: Error > {
You can’t perform that action at this time.
0 commit comments