Function git2::opts::get_search_path
source · [−]pub unsafe fn get_search_path(level: ConfigLevel) -> Result<CString, Error>
Expand description
Get the search path for a given level of config data.
level
must be one of ConfigLevel::System
, ConfigLevel::Global
,
ConfigLevel::XDG
, ConfigLevel::ProgramData
.
This function is unsafe as it mutates the global state but cannot guarantee thread-safety. It needs to be externally synchronized with calls to access the global state.