diff options
Diffstat (limited to 'vendor/gix/src/repository/config/mod.rs')
-rw-r--r-- | vendor/gix/src/repository/config/mod.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/gix/src/repository/config/mod.rs b/vendor/gix/src/repository/config/mod.rs index e5c8b64f3..618ccf0f6 100644 --- a/vendor/gix/src/repository/config/mod.rs +++ b/vendor/gix/src/repository/config/mod.rs @@ -22,6 +22,21 @@ impl crate::Repository { } } + /// Return filesystem options as retrieved from the repository configuration. + /// + /// Note that these values have not been [probed](gix_fs::Capabilities::probe()). + pub fn filesystem_options(&self) -> Result<gix_fs::Capabilities, config::boolean::Error> { + self.config.fs_capabilities() + } + + /// Return filesystem options on how to perform stat-checks, typically in relation to the index. + /// + /// Note that these values have not been [probed](gix_fs::Capabilities::probe()). + #[cfg(feature = "index")] + pub fn stat_options(&self) -> Result<gix_index::entry::stat::Options, config::stat_options::Error> { + self.config.stat_options() + } + /// The options used to open the repository. pub fn open_options(&self) -> &crate::open::Options { &self.options |